Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SSH key passphrase authentication
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Wed Oct 23, 2002 3:57 am    Post subject: SSH key passphrase authentication Reply with quote

How can I enable RSA keyphrase authentication when my users log in via SSH, rather than asking for their system password?

I'm interested in creating keys for the users, and then having it ask them for their passphrase when they SSH to the server.
Back to top
View user's profile Send private message
mglauche
Retired Dev
Retired Dev


Joined: 25 Apr 2002
Posts: 564
Location: Germany

PostPosted: Wed Oct 23, 2002 7:45 am    Post subject: Reply with quote

create a rsa keypair, sing it with a keyphrase, then upload the public part to the server you want to connect to. Also check out the EXCELENT howto on ssh keymanagement on the gentoo frontpage.
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Wed Oct 23, 2002 7:58 pm    Post subject: Reply with quote

I'm not sure I understand "then upload the public part to the server you want to connect to".

I'm running Gentoo on my machine... "p2c2e".

I want to log into p2c2e via SSH, from anywhere else, and I want it to ask me for my username, and then instead of password, I want Keyphrase.

Is this possible? or am I going to have to carry around public key data wherever I go?
Back to top
View user's profile Send private message
nitro322
Guru
Guru


Joined: 24 Jul 2002
Posts: 596
Location: USA

PostPosted: Wed Oct 23, 2002 9:58 pm    Post subject: Reply with quote

read the articles he mentioned - they're excellent guides. I set this up myself the other day using these articles and I had everything working in minutes. Here are the direct links:

http://www-106.ibm.com/developerworks/linux/library/l-keyc/
http://www-106.ibm.com/developerworks/linux/library/l-keyc2/
http://www-106.ibm.com/developerworks/linux/library/l-keyc3/

Parts 1 and 2 should cover all the basics. Have fun!
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Thu Oct 24, 2002 11:56 pm    Post subject: Reply with quote

Great!

This is working now, as long as I do ssh user@p2c2e, but if I just do ssh p2c2e and then type in a user name, I get the classic password authentication.

Is there a way to make both methods ask for keyphrases?
Back to top
View user's profile Send private message
BackSeat
Apprentice
Apprentice


Joined: 12 Apr 2002
Posts: 242
Location: Reading, UK

PostPosted: Fri Oct 25, 2002 12:48 pm    Post subject: Reply with quote

Do you have the same username on both systems? If not, check out the use of the .ssh/config file, which can provice the remote username for you.

BS
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Fri Oct 25, 2002 5:21 pm    Post subject: Reply with quote

BackSeat wrote:
Do you have the same username on both systems? If not, check out the use of the .ssh/config file, which can provice the remote username for you.

BS


I'm logging in to my own Gentoo box remotely, usually with Putty on a Windows machine.
Back to top
View user's profile Send private message
onlawn
n00b
n00b


Joined: 25 Oct 2002
Posts: 45

PostPosted: Fri Oct 25, 2002 10:33 pm    Post subject: Putty? hmmm Reply with quote

On the Putty website is the long instructions on using rsa/dsa keypairs. In the end it wasn't worth it. I still use Putty, but not that way.

For an alternative, try Cygwin. It will work with Daniel's tutorial. Just install the ssh and cygwindll packages if thats all you want.
Back to top
View user's profile Send private message
OdinsDream
Veteran
Veteran


Joined: 01 Jun 2002
Posts: 1057

PostPosted: Sat Oct 26, 2002 2:13 am    Post subject: Reply with quote

Well, I'm not as concerned with my own ability to work around this as I am with other users I add to the system.

I want all logins to be done via RSA keyphrase authentication, regardless of the client, and how they connect.

At the very least, I'd like to disable standard password authentication. Is this possible ?
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Sat Oct 26, 2002 5:05 am    Post subject: Reply with quote

OdinsDream wrote:
At the very least, I'd like to disable standard password authentication. Is this possible ?

In /etc/ssh/sshd_config,
Code:
# To disable tunneled clear text passwordsl, change to no here!
PasswordAuthentication no

_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum