Jan van den Berg

Simple jumphost ssh-agent config

You can find many tutorials online on how to use ssh-agent or ssh-ident correctly.

This is a short and simple two line fix aimed at a specific use i.e. a single connection to a jumphost.

Add this to your .bashrc

alias jump='eval ssh-agent && ssh-add ~/.ssh/id_rsa && ssh -A -i "~/.ssh/id_rsa" jan@jumphost.domain.name'

So now when you type jumphost:

And from the jumphost you can ssh connect to anywhere because you forwarded your keys.

Possible drawbacks:

pkill ssh-agent

Drawbacks:

This setup works for quick access from a let's say a secondary machine to my jumphost, to quickly check some things. On my primary machine (for real work) I just use this.

cygwin, ssh, ssh-agent, tech, tips

⬅ Previous post
Compact WSL partition and reclaim storage space

Next post ➡
Floccus is the bookmark manager you have been looking for