LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-03-2012, 03:41 PM   #1
acunacha
LQ Newbie
 
Registered: Nov 2012
Posts: 15

Rep: Reputation: Disabled
SSH DSA Keys issue


Hi all,

I have a doubt I hope you can help me with.

First of all I will describe briefly the environment:

Using SUSE SLES 11, I have a user called "tim" in this system (server1), and have two more users ("carl" and "cindy") in another system (server2). I would like to use DSA keys.

Is there a way for me to allow carl and cindy to ssh to server1 as if they were tim using DSA keys?

I normally do:

ssh-keygen -t dsa (to generate the dsa keys in server2)
ssh-copy-id -i /home/user/.ssh/id_dsa.pub server1 (to deploy the public key to server1)

Is it possible to do that? (Is there a way for me to allow carl and cindy to ssh to server1 as if they were tim using DSA keys)

THanks in advance,

Diego
 
Old 12-04-2012, 01:57 PM   #2
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Hello Diego, so what's your ultimate purpose of doing this? It will generate ssh keys for the users as well as their passphrase. So do you want those users should login with a passphrase on server1, instead of a password?
Although you're doing right, but mention your purpose, because many things came into the picture.

Last edited by shivaa; 12-04-2012 at 01:59 PM.
 
Old 12-04-2012, 10:35 PM   #3
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
Hi acunacha,

As you said,I guess the following commands can help you out:

Quote:
ssh-keygen -t dsa (to generate the dsa keys in server2)
ssh-copy-id -i /home/user/.ssh/id_dsa.pub server1 (to deploy the public key to server1)
Steps:
1. Generate the keys for both the users("carl" and "cindy")

2. copy their public keys to the server1 using ssh-copy-id as..

[carl@carlws ~]$ssh-copy-id tim@server1

[cindy@cindyws ~]$ssh-copy-id tim@server1

I'm not sure,but try ...it may work.

you can use a passphrase too.


Good luck.

Last edited by RaviTezu; 12-05-2012 at 04:05 AM.
 
Old 12-04-2012, 10:44 PM   #4
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
Quote:
Is it possible to do that? (Is there a way for me to allow carl and cindy to ssh to server1 as if they were tim using DSA keys)
In this case, append both user's .pub keys in /home/tim/.ssh/authorized_keys on server1.
Then both your user's can do ssh on user tim@server1 from server2, as:
Code:
carl{server2}$ ssh tim@server1
Eneter passphrase:

Last edited by shivaa; 12-04-2012 at 10:57 PM.
 
Old 12-05-2012, 01:25 AM   #5
RaviTezu
Member
 
Registered: Nov 2012
Location: India
Distribution: Fedora, CentOs, RHEL
Posts: 164

Rep: Reputation: 24
Quote:
Originally Posted by shivaa View Post
In this case, append both user's .pub keys in /home/tim/.ssh/authorized_keys on server1.
ssh-copy-id do the same thing.

It is recommended to use ssh-copy-id rather than coping the key manually.

Last edited by RaviTezu; 12-05-2012 at 03:40 AM.
 
  


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
[SOLVED] ssh keys - no password issue kongfranon Linux - Server 12 10-12-2010 12:25 AM
SSH crashes on login while any RSA/DSA keys exist jjinno Linux - Networking 2 04-09-2010 07:38 PM
Fedora 10: SSH dsa keys not working. ESC201 Linux - Software 12 01-05-2010 03:05 PM
GPG -- RSA or DSA with El Gamal for new keys butters33 Linux - Security 9 07-07-2009 12:26 PM
Is it possible to re-use RSA/DSA keys in different instances? astrogeek Slackware 2 11-24-2008 06:03 PM


All times are GMT -5. The time now is 06:34 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration