LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 05-10-2008, 04:57 PM   #1
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 66
Syntax of SSH public and private key files


I can't seem to find a nice manual on the syntax of the public and private key files for SSH.

I see that for the public key I can limit the connection to a particular host, command, both.

For the private key I can indicate which username to login to the remote server as.

Is there a complete guide somewhere with all my options?
 
Old 05-10-2008, 05:04 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Debian "Jessie"
Posts: 6,038

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Quote:
Is there a complete guide somewhere with all my options?
Try here: http://www.linuxquestions.org/linux/...ation_with_ssh
 
Old 05-10-2008, 08:42 PM   #3
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Original Poster
Rep: Reputation: 66
Thanks, that's a good guide, but it's a little more basic than what I was looking for. It doesn't cover the options in the key files.
 
Old 05-10-2008, 11:35 PM   #4
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian
Posts: 2,543

Rep: Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880Reputation: 880
see the sshd(8) manpage, section AUTHORIZED_KEYS FILE FORMAT. That's for the public key, I don't see any mention in the man pages about options for the private key. Where did you see that you could set the the username in the private key?
 
Old 05-11-2008, 09:19 AM   #5
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Original Poster
Rep: Reputation: 66
Ah, my bad. I guess we're all prone to oversights.

Thanks
 
  


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
Private/Public key vs. Password authentication w/ SSH MykeV Linux - Security 5 11-25-2007 12:49 PM
need help with SSH private/public key taduser Linux - Security 2 04-02-2007 08:07 PM
SSH - trouble authenticating private/public key Micro420 Linux - Networking 5 01-23-2007 02:08 PM
SSH public / private key authentication problems thronh Linux - Security 7 06-14-2006 12:21 PM
SSH public/private key authentication with GnuPG keys? thinksincode Linux - Security 1 02-25-2005 03:33 PM


All times are GMT -5. The time now is 01:01 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration