Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-28-2010, 08:27 PM   #1
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, 08:43 PM   #2
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, 08:18 AM   #3
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

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

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


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

All times are GMT -5. The time now is 01:50 PM.

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