I'm having a Jump Server and a Target Server that I would like to connect to as this
myPc > JumpServer > TargetServer
in first step I can do ssh-keygen to skip password authentication, however when in step 2, due to security matters, ssh-keygen was not installed and I can't do anything about it. So I was thinking to pass the password in one single command on my PC. What I have tried so far:
sshpass -p myPassword ssh -At username@JumpServer ssh -A username@targetServer
ssh -J username@JumpServer username@targetServer
But none works, any advices ?