https://rancher.com/ logo
Title
a

ancient-bird-9943

09/07/2022, 2:19 AM
Hi everyone, I'm having a hard time getting RKE set up on Ubuntu 22.04. I get the error
failed to set up SSH tunneling for host [192.168.86.82]: Can't retrieve Docker Info: error during connect: Get "<http://%2Fvar%2Frun%2Fdocker.sock/v1.24/info>": Unable to access the service on /var/run/docker.sock. The service might be still starting up. Error: ssh: rejected: connect failed (open failed)
on all three of my nodes yet when I run
ssh rke@192.168.86.82 'docker ps -a'
for any of them, it returns
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
as expected. Does anyone have any things to try? I've adjusted the sshd_config to have
AllowTcpForwarding yes
. I can give more of my cluster.yml file if needed.
f

freezing-wolf-83208

09/07/2022, 4:02 PM
do you have the key exchange done between the servers? all three servers would need the public key.
a

ancient-bird-9943

09/07/2022, 4:12 PM
Yes. I utilize ssh certs and have them implemented properly (or at least I think I do). When the cert has expired (mine only last 30 minutes currently), the
rke up
command complains about authentication. When it's working (as shown by being able to ssh in without a password with that command), it gives that connect failed error.
f

freezing-wolf-83208

09/07/2022, 4:28 PM
does the cluster yaml have your ID listed as user?
a

ancient-bird-9943

09/07/2022, 4:36 PM
The username for the cert, location, and user is all correct. The user also belongs to the docker group. I can use ansible to setup across all the hosts using my current ssh config as well.
f

freezing-wolf-83208

09/07/2022, 4:44 PM
hmm... I have encountered this only when the user wasnt defined right or the .ssh/authorized_keys file wasnt available under the home folder. did you check the file permission on that file?
a

ancient-bird-9943

09/08/2022, 2:40 AM
I ended up just using normal ssh keys via the authorized_keys folder and gave up on certs for this.