请参阅https://github.com/arunoda/meteor-up/issues/171
我正在尝试将我的meteor应用程序从我的Linode机器部署到Linode中的远程服务器。
我按照《流星升起》中的说明
Invalid mup.json file: Server username does not exitmup.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 }
}
]所以我取消了对用户名的注释:"roote line in mup.json and I So 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你们知道哪里出问题了吗?
发布于 2015-03-12 14:26:17
// Server authentication info
"servers": [
{
"host": "123.456.78.90",
"username": "root",
// or pem file (ssh based authentication)
"pem": "~/.ssh/id_rsa",
"sshOptions": { "Port": 22 }
}
]https://stackoverflow.com/questions/28979957
复制相似问题