log you into both the bastion and the remote host based on the keys present in the local machine right?
tho one thing... this ssh config does not work, my home pc requires a password, even tho ssh-ing into the bastion and ssh-ing into my home machine from there works just fine with the key
host bryanbox
user bryanpedini
proxyjump gateway
identityfile /home/bryanpedini/.ssh/id_rsa
host gateway
user root
identityfile /home/bryanpedini/.ssh/id_rsa
thx in advance
Add your key into ssh-agent and then enable ssh agent forwarding. See https://docs.github.com/en/authentication/connecting-to-github-with-ssh/using-ssh-agent-forwarding
with or without agent forwarding
Обсуждают сегодня