SSH - feed private key from file?

Associate
Joined
19 Jun 2003
Posts
1,680
Location
West Yorks, UK
Hi all,
I've carried out the following:
Code:
ssh-keygen -t rsa -f ./.config/auth/.ssh/id_rsa

And now i'm trying to feed the key into an SSH command:
Code:
ssh -i ./.config/auth/.ssh/id_rsa

The paths are OK, i'm just wondering if i'm missing something obvious?

Matt
 
OpenSSH will refuse to use the private key if it is world/group-readable, I can't think of any other reason why it should fail.
 
Ah! The permissions had become a little screwy - it had group readable too. The other thing that confused me was that when i connected with it, it mentioned an exisiting key in ~/.ssh/ - I assumed this meant it was looking in the wrong folder, but it seems it must check the users home directory too.

Thanks for the fix :-)

Matt
 
Back
Top Bottom