Help with SSH Keys

Hello,

This might be a very lame question but please pardon me as I'm a newbie... I have 1 user ("testuser") who must be able to log into 3 ubuntu servers via SSH (PuTTY) using a private key (no password). The user has been added on all 3 servers. Is it possible to make it so that testuser has only 1 private key that works on all 3 servers?

Thanks a lot.
Jay
jiiins2Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

robertfwoodsCommented:
Short answer YES.

If you installed the entire putty suite, you should have a program on your windows start menu named puttygen.

Use puttygen to generate your public and private keys.
Save both. I like to save the private key in an obscurely named windows directory.
Use cut to capture the displayed public key from the window in the puttygen window. It is a single line and seems to work better on the linux servers. (The one that is saved using the button in puttygen has some extra information).

Place the public key in the ~/.ssh/authorized_keys  file on the linux server for the user. (use vi)
Make it secure chmod 600 ~/.ssh/authorized_keys
Use wc ~/.ssh/authorized_keys to make sure the key is on a single line.

Repeat for the other two servers.

The attached file will supply a few more details, including using pagent.
ExploringKeysWithPutty.pdf

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jiiins2Author Commented:
Perfect, thanks!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.