you should be able to use limactl show-ssh NAME
where NAME
is the name of your rancher node (which you can list using limactl list
).
alternatively, you can also use ps -ef | grep rancher
which will list the rancher processes, some of which containing ssh information:
126693404 2136 1983 0 Thu12PM ?? 0:00.01 ssh -F /dev/null -o IdentityFile="/Users/xxxxxx/Library/Application Support/rancher-desktop/lima/_config/user" -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o NoHostAuthenticationForLocalhost=yes -o GSSAPIAuthentication=no -o PreferredAuthentications=publickey -o Compression=no -o BatchMode=yes -o IdentitiesOnly=yes -o Ciphers="^[email protected],[email protected]" -o User=xxxxxx -o ControlMaster=auto -o ControlPath="/Users/xxxxxx/Library/Application Support/rancher-desktop/lima/0/ssh.sock" -o ControlPersist=5m -p 49314 127.0.0.1 -- sshfs :/tmp/rancher-desktop /tmp/rancher-desktop -o slave -o allow_other
you can then manually ssh by using the same port and identity file as the command is using.
In this case:
ssh -p 49314 -i '/Users/xxxxxx/Library/Application Support/rancher-desktop/lima/_config/user' xxxxxx@localhost
This is, for sure, less convenient but seems to be working well.