Velvet Star Monitor

Standout celebrity highlights with iconic style.

general

Can I change the filename of my ssh public/private key pair?

Writer Andrew Henderson

I created a public/private key pair:

ssh-keygen -t rsa -C ""

I gave a different key file name than id_rsa since I wanted to create a new separate key from my normal identity.

I gave this key to my hosting provider so that I can login to my server using public key authentication.

I was able to initially login using the key and everything worked.

ssh -i /path/to/key/file 

I realized I made a spelling error in the key file name and renamed both the public and private key files. Does this affect anything on the server side if the key file has a different name on my client machine?

1 Answer

The filename has no meaning at all, as long as ssh is told where to find it.

(However, if you have the public key extracted to a separate file, then it should have the same filename + .pub as the main file; e.g. mykey & mykey.pub.)

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy