daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Dec 22nd, 2016 84 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Problem]
  2. I can acccess SSH using private ip, but can't access using public ip
  3.  
  4. [Environment]
  5. ifconfig
  6. ens18 = public ip
  7. ens19 = private ip
  8.  
  9. netstat -tnl
  10. Active Internet connections (only servers)
  11. Proto   Recv-Q  Send-Q  Local Address   Foreign Address State
  12. tcp 0   0   0.0.0.0:22  0.0.0.0:*   LISTEN
  13. tcp6    0   0   :::22       :::*        LISTEN
  14.  
  15.  
  16. route
  17. Kernel IP routing table
  18. Destination Gateway     Genmask Flags   Metric  Ref Use Iface
  19. default     192.168.1.1 0.0.0.0     UG  0   0   ens19
  20. 192.168.1.0 *       255.255.255.0   U   0   0   ens19
  21. 220.125.160.0   *       255.255.255.0   U   0   0   ens18
RAW Paste Data
Top