I connect to my remote server using:
ssh -At [email protected] ssh -At [email protected]
The following only asks me for a password one time. I do not have any authentication file on my computer, just a password is needed.
I want to create a config
file so I connect by doing ssh slurm
. I need it for some software that doesn't support -At
s and they only accept one ssh name.
I tried this config:
Host csail
HostName target.edu
User user
ForwardAgent yes
Host slurm
HostName slurm.target.edu
User user
ProxyJump csail
This config works but surprisingly asks me for the password two times! one after the other. (asks for the same password twice!)
To fix this issue I tried a little bit and found out that it seems from target.edu
to slurm.target.edu
the system is using something called Kerberos and it can be the potential cause of the problem.
I'm here to ask if there is any way for me to modify my config file so I can ssh it using my password only once.
P.S. Note that I do not have any control over the login methods. I'm not able to change any authentication policy.