SSH连接错误-权限被拒绝(公钥) [英] SSH connection error - Permission denied (publickey)
问题描述
我正在尝试使用 https://github.com/amplab在AWS上运行Spark集群/spark-ec2 .
我已经生成了密钥和登录凭据,并且正在使用以下命令:
I've generated a key and and login credentials, and I'm using this command:
./spark-ec2 --key-pair=octavianKey4 --identity-file=credentials3.csv --region=eu-west-1 --zone=eu-west-1c launch my-instance-name
但是,我一直得到这个:
However, I keep getting this:
Warning: SSH connection error. (This could be temporary.)
Host: mec2-myHostNumber.eu-west-1.compute.amazonaws.com
SSH return code: 255
SSH output: Warning: Permanently added 'ec2-myHostNumber.eu-west-1.compute.amazonaws.com,myHostNumber' (ECDSA) to the list of known hosts.
Permission denied (publickey).
如果我退出控制台,然后再次尝试启动群集,则会得到以下提示:
If I quit the console and then try to start the cluster again, I get this:
Setting up security groups...
Searching for existing cluster my-instance-name in region eu-west-1...
Found 1 master, 1 slave.
ERROR: There are already instances running in group my-instance-name-master or my-instance-name-slaves
推荐答案
是否可以在spark-ec2
命令中添加--resume
并尝试?您的奴隶可能没有钥匙. --resume
将确保已将其传输到从站.
Can you add --resume
to your spark-ec2
command and try? Your slave may not have the key. --resume
will make sure it is transferred to the slave.
如果您的其中一项启动由于以下原因而失败:没有权利 私钥文件的权限,您可以使用以下命令运行启动 --resume选项可在现有群集上重新启动设置过程.
If one of your launches fails due to e.g. not having the right permissions on your private key file, you can run launch with the --resume option to restart the setup process on an existing cluster.
这篇关于SSH连接错误-权限被拒绝(公钥)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!