Jumpbox problem about needing more ssh key's

jeremyy44

Member
Joined
Jan 20, 2021
Messages
45
Reaction score
8
Credits
425
Hi,

So here is my situation.
I have my user desktop, my jumpbox and my server.
My thought here is I want to use my jumpbox as well a jumpbox server for ssh, and it works.

But I tough I would only need to add the ssh key of the user to the jumpbox and the jumpbox to the server. Not the user key to the server. Am I missing something here or is my proxycommand not right? It looks like that
Code:
Host *tron
        User ***
        IdentityFile ~/.ssh/id_rsa
        ProxyCommand ssh -q jumpbox -W %h:%p

# Jumpbox
Host jumpbox
        HostName ***
        User ***
        IdentityFile ~/.ssh/id_rsa

# Server 
Host mediatron
        HostName ***

So what am I missing here? Did I not understand correctly how it works or is something wrong with my setup?

Thanks in advance
 


use the -J option, in the format of ssh -J <jumpbox> <destination>.

To SSH to a server through a jumpbox, you can use ssh -J myuser@jumpbox myuser@securebox
 

Staff online

Members online


Latest posts

Top