- generate the keys
- copy the pub key into authorized_keys2 on the remote box
- ssh -i ~/.ssh/privateKeyFileName otheruser@remoteboxname
Professional programmer; amateur home handyman (on our home only); tinkerer; husband; father of 3; attempting to be a renaissance guy (to know at least a little about a lot of subjects, a doomed pursuit in an information age); geek-arts-and-sciences enthusiast. Interest areas: Science fiction, wind turbines, electric cars, renewable energy, making things.
Friday, October 14, 2011
Using ssh id_rsa without password - another username
Just had to login to another box via ssh, but the other account has a different username than my current one.
Further, had to use a different id_dsa / id_dsa.pub set of files. I couldn't figure this out for a while. Turns out, the right way to do this is:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment