Failed to dial to /var/run/docker.sock: ssh: rejected: administratively prohibited (open failed)
- 没有访问 Docker socket 的权限,请登录主机,运行检查权限:
如果您使用的操作系统是 RedHat 或 CentOS,您不能使用 root 用户连接节点,因为这两种系统有这个 bugBugzilla #1527565。您需要添加一个用户,然后为它配置访问 Docker socket 的权限。详情请参考。
nc xxx.xxx.xxx.xxx 22
Failed to dial ssh using address [xxx.xxx.xxx.xxx:xx]: Error configuring SSH: ssh: no key found
无法访问密钥文件
ssh_key_path
。请检查您是否已经指定了密钥文件,检查执行 命令的用户是否有权限访问这个密钥文件。
Failed to dial ssh using address [xxx.xxx.xxx.xxx:xx]: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
- 密钥文件
ssh_key_path
不正确。请检查节点使用的密钥文件是否为ssh_key_path
,然后检查您是否指定了正确的用户使用这个密钥通过 SSH 连接。
Failed to dial ssh using address [xxx.xxx.xxx.xxx:xx]: Error configuring SSH: ssh: cannot decode encrypted private keys
如果您想使用加密的私钥,您应该使用命令加载密钥和密钥短语(passphrase)。您可以在命令行工具输入--ssh-agent-auth
命令,配置 RKE 使用这个 agent。它会在运行rke
命令的环境中使用SSH_AUTH_SOCK
环境变量。
Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?
- 无法连接节点,请检查配置的地址
address
和端口是否有误。