安装Rancher RKE时的第一个坑,
Failed to set up SSH tunneling for host [192.168.56.86]: Can't retrieve Docker Info: error during connect: Get "http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info": Unable to access node with address [192.168.56.86:22] using SSH. Please check if you are able to SSH to the node using the specified SSH Private Key and if you have configured the correct SSH username. Error: ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
主要是ssh key配置的问题。首先要保证 ssh rancher@node1 / ssh rancher@node2 这些能直接可用。记得加载你启动rke的用户的公钥 id_rsa.pub 添加到本地节点和其它节点 rancher用户的 .ssh/authorized_keys里面去。