For connecting to a device via jump proxy (bastion host), I type the following:
ssh -J bhost myuser@localhost -p $PORT
myuser is the usernanme for my current logged in user on my local device as well as the account I am connecting to on the bastion host. I have more than one PORT set up.
bhost is defined in my SSH .config like this:
Host bhost HostName www.example.com PasswordAuthentication no IdentityFile ~/.ssh/id_ed25519
My goal is to not have to type
myuser@localhost. Instead, I want to be able to login like this:
ssh -J bhost -p $PORT
No matter the bastion host or port I use,
myuser@localhost is always the same, so I prefer to not have to type it.