Blog icon indicating copy to clipboard operation
Blog copied to clipboard

coding 配置 ssh 公匙无效

Open codcodog opened this issue 5 years ago • 0 comments

coding 配置 ssh 公匙无效

场景

在 coding 后台添加了「SSH 公钥」,但是无效
client_loop: send disconnect: Broken pipe 错误.

~ $ ssh -T [email protected]
client_loop: send disconnect: Broken pipe

原因

可能是虚拟机 VMWare 的原因(不确定).

在自己的笔记本配置,没有出现以上问题,但在虚拟机配置则有.

~/.ssh/config 添加以下内容

Host *
    ServerAliveInterval 600
    TCPKeepAlive yes
    IPQoS=throughput

「SSH 公钥」就生效了.

参考

SSH 公钥使用办法
VMWare SSH Bug

codcodog avatar Nov 23 '19 03:11 codcodog