之前执行ssh ip命令一直ok,  最近换环境了, 执行ssh ip命令, 登录不了, 卡住。

     man一下, 知道有个-v的用法:

     -v      Verbose mode.  Causes ssh to print debugging messages about its progress.  This is helpful
             in debugging connection, authentication, and configuration problems.  Multiple -v options
             increase the verbosity.  The maximum is 3.

     试下: ssh ip -vvv, 结果:

OpenSSH_7.6p1, LibreSSL 2.6.2
debug1: Reading configuration data /Users/taoge/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: auto-mux: Trying existing master
debug1: Control socket "/tmp/taoge@" does not exist
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to port 22.
ssh: connect to host port 22: Operation timed out

      更新下config, 搞定问题。




发布了2203 篇原创文章 · 获赞 4516 · 访问量 1960万+


©️2019 CSDN 皮肤主题: 技术工厂 设计师: CSDN官方博客