ssh连接不上

     之前执行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@10.129.103.132:22" does not exist
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 10.129.103.132 port 22.
ssh: connect to host 10.129.103.132 port 22: Operation timed out

      更新下config, 搞定问题。

      简单。

 

 

发布了2203 篇原创文章 · 获赞 4516 · 访问量 1960万+
展开阅读全文

没有更多推荐了,返回首页

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

分享到微信朋友圈

×

扫一扫,手机浏览