请参阅https://github.com/arunoda/meteor-up/issues/171
我正在尝试将我的流星应用程序从我的亚硝基盒部署到Linode的远程服务器。
我遵循流星指示并得到
Invalid mup.json file: Server username does not exit
mup.json
// Server authentication info
"servers": [
{
"host": "123.456.78.90",
// "username": "root",
// or pem file (ssh based authentication)
"pem": "~/.ssh/id_rsa",
"sshOptions": { "Port": 1024 }
}
]
所以我取消注释用户名:"在mup.json中的roote行,我做了mup logs -n 300并得到以下错误:
[123.456.78.90] ssh: connect to host 123.456.78.90 port 1024: Connection refused
我怀疑在设置SSH密钥时可能会出错。在〜/ .ssh / authorized_keys中设置我的ssh密钥后,我可以在没有密码的情况下访问我的远程服务器。
authorized_keys的内容如下所示:
ssh-rsa XXXXXXXXXX..XXXX== root@apne1.nitrousbox.com
你们对于出了什么问题有什么看法吗?
答案 0 :(得分:1)
通过取消注释用户名并将端口更改为22来解决问题:
// Server authentication info
"servers": [
{
"host": "123.456.78.90",
"username": "root",
// or pem file (ssh based authentication)
"pem": "~/.ssh/id_rsa",
"sshOptions": { "Port": 22 }
}
]