调试ssh客户端

这里就讲了查看ssh连接的过程, 打开-v的开关就好了.

  1. ssh root@localhost -v
  2. OpenSSH_6.9p1 Ubuntu-2, OpenSSL 1.0.2d 9 Jul 2015
  3. debug1: Reading configuration data /home/mr/.ssh/config
  4. debug1: Reading configuration data /etc/ssh/ssh_config
  5. debug1: /etc/ssh/ssh_config line 19: Applying options for *
  6. debug1: auto-mux: Trying existing master
  7. debug1: Control socket "/tmp/root@localhost:22" does not exist
  8. debug1: Connecting to localhost [127.0.0.1] port 22.
  9. debug1: connect to address 127.0.0.1 port 22: Connection refused
  10. ssh: connect to host localhost port 22: Connection refused

过程很详细.