我正在尝试连接需要 SSH 密钥才能连接的远程服务器。我正在使用 Sublime Text 3 的 SFTP 包进行开发。我可以通过 SSH 连接,但 sublime sftp 失败。我为此使用了标准配置,但是当我同步本地和远程时显示连接超时错误。我在下面包含了相关细节。
sftp-config.json
{
// ... all other settings untouched ...
"type": "sftp",
"host": "<ipaddr>",
"user": "ubuntu",
"remote_path": "/home/ubuntu/devproject",
"connect_timeout": 500,
"ssh_key_file": "C:/Users/Dev-Laptop-008/Documents/MobaXterm/home/.keys/devkey.pem"
// ... all other settings untouched ...
}
崇高的控制台错误
Connecting to SFTP server "ipaddr" as "ubuntu" ..... failure (Connection timeout)
远程服务器的auth.log
Jun 30 05:45:00 developers-den sshd[6475]: Connection closed by authenticating user ubuntu <ipaddr> port 63382 [preauth]