LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-28-2010, 07:27 PM   #1
davidlu766
LQ Newbie
 
Registered: Apr 2010
Posts: 23

Rep: Reputation: 15
How can I setup SSH private key authentication?


I heard there's a more secure way to log onto Linux using SSH, I think it's called SSH private key authentication. How does it work? Is it really more secure than typing in passwords? And how do I set it up?
 
Old 04-28-2010, 07:43 PM   #2
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Public Key exchange authentication uses a Private and Public key.
The SSH server has the User's public key stored.
The SSH client has the User's private key. Only this User has the private key.

When the SSH client connects it decrypts the authentication token with the private key and responds with an answer ... as only the User with the Private key can do this, it ensures secure authentication.

You will find many pages if you google.
 
Old 04-29-2010, 07:18 AM   #3
Hangdog42
LQ Veteran
 
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 422Reputation: 422Reputation: 422Reputation: 422Reputation: 422
Including an old, but still relevant tutorial, right here at LQ.
 
Old 04-29-2010, 07:32 AM   #4
choogendyk
Senior Member
 
Registered: Aug 2007
Location: Massachusetts, USA
Distribution: Solaris 9 & 10, Mac OS X, Ubuntu Server
Posts: 1,197

Rep: Reputation: 105Reputation: 105
I've been using the step by step howto here http://sial.org/howto/openssh/publickey-auth/ for reference for years. They have a number of other similar howtos related to ssl, ssh, etc. Very knowledgeable, clear and to the point.
 
  


Reply



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
Query related to ssh private-public key authentication saagar Linux - Newbie 3 03-23-2010 10:59 AM
Private/Public key vs. Password authentication w/ SSH MykeV Linux - Security 5 11-25-2007 11:49 AM
SSH public / private key authentication problems thronh Linux - Security 7 06-14-2006 11:21 AM
Can someone explain the basics of private-key authentication through SSH? lowpro2k3 Linux - Security 2 06-08-2005 11:22 PM
SSH public/private key authentication with GnuPG keys? thinksincode Linux - Security 1 02-25-2005 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 08:13 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