小编her*_*ain的帖子

如何将 Amazon EC2 中的 .pem 文件与 mosh 结合使用?

要登录ssh我这样做:

ssh -i ~/.ssh/kp1.pem ubuntu@ec2-xxxx.com
Run Code Online (Sandbox Code Playgroud)

我尝试了所有这些mosh

mosh --ssh='ssh -i ~/.ssh/kp1.pem ubuntu@ec2-xxxx.com'

mosh -i ~/.ssh/kp1.pem ubuntu@ec2-xxxx.com
Run Code Online (Sandbox Code Playgroud)

但我收到错误:

/usr/bin/mosh: could not get canonical name for /home/$USER/.ssh/kp1.pem: Name or service not known
ssh_exchange_identification: Connection closed by remote host
/usr/bin/mosh: Did not find remote IP address (is SSH ProxyCommand disabled?).
Run Code Online (Sandbox Code Playgroud)

networking ssh

4
推荐指数
1
解决办法
1493
查看次数

标签 统计

networking ×1

ssh ×1