Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. [root@localhost ~]# ssh root@10.0.0.16
  2. ssh: connect to host 10.0.0.16 port 22: Connection refused
  3. [root@localhost ~]# iptables -I INPUT -p tcp --dport 22 -j ACCEPT
  4. [root@localhost ~]# ssh root@10.0.0.16
  5. ssh: connect to host 10.0.0.16 port 22: Connection refused
  6. [root@localhost ~]# service sshd start
  7. [root@localhost ~]# service sshd restart
  8. Stopping sshd: [ OK ]
  9. Starting sshd: [ OK ]
  10. [root@localhost ~]# ssh root@10.0.0.16
  11. ssh: connect to host 10.0.0.16 port 22: Connection refused
  12. [root@localhost ~]# service iptables stop
  13. iptables: Setting chains to policy ACCEPT: filter [ OK ]
  14. iptables: Flushing firewall rules: [ OK ]
  15. iptables: Unloading modules: [ OK ]
  16. [root@localhost ~]# ssh root@10.0.0.16
  17. ssh: connect to host 10.0.0.16 port 22: Connection refused
  18. [root@localhost ~]# chkconfig iptables --list
  19. iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off
  20. [root@localhost ~]# chkconfig iptables off
  21. [root@localhost ~]# chkconfig iptables --list
  22. iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off
  23. [root@localhost ~]# ssh root@10.0.0.16
  24. ssh: connect to host 10.0.0.16 port 22: Connection refused
  25.  
  26. [root@localhost ~]# ssh 10.0.0.17
  27. The authenticity of host '10.0.0.17 (10.0.0.17)' can't be established.
  28. RSA key fingerprint is 72:71:eb:f6:b1:4c:48:8c:ec:7a:66:8c:ec:53:0c:6d.
  29. Are you sure you want to continue connecting (yes/no)? yes
  30. Warning: Permanently added '10.0.0.17' (RSA) to the list of known hosts.
  31. root@10.0.0.17's password:
  32. Last login: Fri Jul 3 12:45:20 2015 from 10.0.0.16
  33. [root@localhost ~]#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement