zellda's

notes on Linux

Secure Shell - Use Multiple Certificates

This is going to be very short really.

The problem:

I have a mess of private and public certificate-files lying around. To gain some overview I named them differently. But when the private key created with

Terminal
1
ssh-keygen -t rsa -b 4096

is not named ‘id_rsa’ SSH won’t use it.

The simple solution is to point ssh to the private key it should use with the ‘-i’-option:

Terminal
1
ssh -i /path/to/private_key user@ip

e.g.

Terminal
1
ssh -i /home/adam/.ssh/adams_id_rsa adam@192.168.0.2

That’s it.

Have fun!

Comments