Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Security
User Name
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.


  Search this Thread
Old 06-08-2005, 10:41 PM   #1
Registered: Oct 2003
Location: Canada
Distribution: Slackware
Posts: 340

Rep: Reputation: 30
Can someone explain the basics of private-key authentication through SSH?

I know I could google it, but if you have -done- it before and can explain how the private key is secured on the client machine in about a paragraph, you saved me some time. Im not thinking about implementing it (yet...), I just kind of want a general idea of what its all about.

OK fine, I'll go google it too... But if you have experience with it I wouldnt mind getting a little intro to it.

Old 06-08-2005, 11:43 PM   #2
Senior Member
Registered: Apr 2005
Location: BrewCity, USA (Milwaukee, WI)
Distribution: Xubuntu 9.10, Gentoo 2.6.27 (AMD64), Darwin 9.0.0 (arm)
Posts: 1,152

Rep: Reputation: 46
ok you get a key pair a private and public key the private key never leaves your computer but when you ssh into another computer the public key is compaired to the authorized_keys file on the server if your public key is in that file it lets you in without a password. your keys are usualy something like:


on the server side the authorized _keys file is in:


and it may have many keys one per line if you want any helpsetting this up just ask
Old 06-09-2005, 12:22 AM   #3
Senior Member
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
It's also important to note that the public and private keys are mathematically related. Here are a few links on asymetric key exchange protocols that might be helpful:

For a really good read, pick up a copy of Applied Cryptography.


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 public key authentication teacup Linux - Networking 4 11-28-2011 12:27 AM
SSH - Problem with Public Key Authentication HaPagan Linux - Security 5 11-29-2005 12:27 AM
SSH public/private key authentication with GnuPG keys? thinksincode Linux - Security 1 02-25-2005 03:33 PM
public/private key authentication with PuTTY NetAX Linux - Security 5 10-27-2004 07:00 PM
ssh-key authentication failing on one machine chr15t0 Linux - Security 3 08-21-2003 05:24 PM > Forums > Linux Forums > Linux - Security

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