DEV Community

Manage Multiple SSH Logins

Czar Pino on September 15, 2018

It can be quite cumbersome when you have a lot of remote servers to log into. If they support SSH access or if you can configure them to do so, man...
Collapse
 
polyluxus profile image
Martin Schwarzer

Also nice to know for the configuration is that you can specify options that are common for some or most hosts, like X forwarding, agent forwarding, etc..

If you sometimes need to route through a different server, you can also specify these in the config file.

Many times yes to the config, good that you're showing its capabilities.

Collapse
 
joehobot profile image
Joe Hobot

I agree using config file is best, another one is to sign up with something like userify which works right off your rsa id.

Collapse
 
czarpino profile image
Czar Pino

That's a really interesting alternative Joe. Thanks for sharing!

Collapse
 
vinayhegde1990 profile image
Vinay Hegde

For me, SSH config always sounded tricky but this post made it easy so thanks @Czar

I think it could be even better and standardized for one's team members by having it in version control, e.g: Git which will help have an audit trail, easier to maintain than having multiple files on one's PC & an indirect backup due to being in a VCS

Collapse
 
czarpino profile image
Czar Pino

Happy it helped you Vinay!

Collapse
 
cmmata profile image
Carles Mata

You just saved me a lot of weekly time typing users, full hostnames and ports! Thank you!