I am trying to access a compute node on a cluster via the head node of the cluster and a public entry node. The user is known on both the entry node and the head node, but not and also on the compute node. However, passwords are not available on the compute nodes. Access to the compute node is via hostbased authentication. If I do each step individually, I can login to the compute node.
However, I would like to to this with one single SSH command (since I actually just need to forward a port from the compute node to my local machine). If I do
ssh -v -J public.node.com,head.cluster.com node01
Then I get the error
debug1: Next authentication method: password
joedoe@node01's password:
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password,hostbased
Permission denied, please try again.
joedoe@node01's password:
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password,hostbased
Permission denied, please try again.
joedoe@node01's password:
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password,hostbased
debug1: No more authentication methods to try.
joedoe@node01: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password,hostbased).
debug1: channel 0: free: direct-tcpip: listening port 0 for node01 port 22, connect from 127.0.0.1 port 65535 to UNKNOWN port 65536, nchannels 1
Killed by signal 1.
debug1: channel 0: free: direct-tcpip: listening port 0 for head.cluster.com port 22, connect from 127.0.0.1 port 65535 to UNKNOWN port 65536, nchannels 1
Killed by signal 1.
How can I stop the failure of the authentication method password
from preventing hostbased
being considered?