DEV Community

loading...

Discussion on: How to Manage Multiple SSH Key Pairs

Collapse
dinkopehar profile image
Dinko Pehar

Just add here, I also use simple utility called stormssh. It's a simple command utility for managing ssh config file easily.

Example:

storm add --id_file ~/.ssh/your_key production-server dev@your-domain.com

And config file in .ssh folder looks like:

Host production-server
    hostname your-domain.com
    user dev
    port 22
    identityfile "/home/dinko/.ssh/your_key"
Enter fullscreen mode Exit fullscreen mode

Then you can connect to server as ssh production-server.

Forem Open with the Forem app