LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-06-2004, 11:50 AM   #1
ronin1
LQ Newbie
 
Registered: Jun 2004
Posts: 8

Rep: Reputation: 0
ssh-keygen on network mnt /home


I'm trying to ssh between 6 rh9 servers without having to type my password in evertime. The problem i'm running into is my users home directory is shared across all 6 boxes. I've tried to create unique private keys in the same .ssh directory then cat the pubic keys to "authorized_keys" (same directory). The unique naming convention i'm using is "id_rsa_user_host --- id_rsa_user_host.pub". Is there a way I could have multiple private keys in the id_rsa file?

Does anyone have an easier way to do this?

SORRY...I POSTED THIS ON THE FORUM...

Last edited by ronin1; 10-06-2004 at 12:33 PM.
 
Old 10-06-2004, 12:31 PM   #2
ky-lab_rat
Member
 
Registered: Jan 2004
Posts: 44

Rep: Reputation: 15
http://www.linuxquestions.org/questi...ticle&artid=79
 
Old 10-06-2004, 01:06 PM   #3
ronin1
LQ Newbie
 
Registered: Jun 2004
Posts: 8

Original Poster
Rep: Reputation: 0
when i ssh -vv user@host it responds saying can't find .ssh/id_rsa for the private key.

I have my private keys named something unique because there are multiple private keys in the same directory. If you try to use the default id_rsa for the private key, each key tries to overwrite the previous key. Is there anyway to cat private keys?
 
Old 10-06-2004, 02:09 PM   #4
ky-lab_rat
Member
 
Registered: Jan 2004
Posts: 44

Rep: Reputation: 15
Read the link.. It show you how to do what your trying to do. We have 20+ linux servers here and I used that link to set it up on all the servers.



I think this is roughly what you want
cat ~/.ssh/id_dsa.pub | ssh user@server "cat - >> ~/.ssh/authorized_keys"

make sure you use >> and not >.. >> appends the data to the end of the file. > overwrites the file

Last edited by ky-lab_rat; 10-06-2004 at 02:14 PM.
 
Old 10-06-2004, 02:54 PM   #5
ronin1
LQ Newbie
 
Registered: Jun 2004
Posts: 8

Original Poster
Rep: Reputation: 0
Thanks for you help. It's not the public keys I'm having a problem with. It's the private key.

What i'm doing for now to get around the problem is creating multiple private keys in the same directory on the box and creating an alias for each server like "ssh -i ~/.ssh/unique_privatekey host"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ssh-agent, ssh-add and ssh-keygen AND CVS raylpc Linux - General 2 11-19-2008 03:50 AM
How to ssh-keygen? Baran Linux - Networking 5 04-26-2005 03:40 PM
ssh-keygen on network mnt'd HOME ronin1 Linux - Security 1 10-06-2004 02:27 PM
ssh-keygen problem mijohnst Linux - Networking 5 07-20-2004 02:00 PM
sftp and ssh-keygen help please grayhost Linux - Newbie 2 06-26-2003 06:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:08 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration