Notes on Java, Solaris, PHP, LDAP…

June 20, 2008

Private/public SSH keys between different logins (usernames)

Filed under: Java — negev @ 5:40 pm
Tags:

Today I’ve set up a private and public SSH key on one server, and I copied the public key to our CVS server. However, my login names were different on those machines, and the keys didn’t help.

Then my colleague advised to create a file under ~/.ssh called config, with an entry like this:
Host happycvs.happycompany.com
User peterk

And suddenly SSH connected fine!

Advertisements

Leave a Comment »

No comments yet.

RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Create a free website or blog at WordPress.com.

%d bloggers like this: