LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxAnswers Discussion
User Name
Password
LinuxAnswers Discussion This forum is to discuss articles posted to LinuxAnswers.

Notices



Reply
 
Search this Thread
Old 10-11-2010, 04:09 AM   #31
jringoot
LQ Newbie
 
Registered: May 2006
Posts: 3

Rep: Reputation: 0
very usefull information


I find myself regularly coming back to this page when I have some trouble with ssh.

Thanks!

I add something related I find usefull as well:
To quickly create a key-pair for a new user, I use this command in a script:
ssh-keygen -qv -f $HOME/.ssh/id_rsa -N ""
(this could be improved as : su $USERNAME -c "ssh-keygen -qv -f $HOME/.ssh/id_rsa -N ''"
Where $USERNAME has been set earlier in the script, (eg as input parameter: "$USERNAME=$1")

Last edited by jringoot; 10-11-2010 at 04:28 AM. Reason: extra info
 
Old 02-02-2011, 09:13 AM   #32
selahlynch
LQ Newbie
 
Registered: Feb 2011
Location: Philadelphia, PA
Posts: 5

Rep: Reputation: 0
I have learned that it is very important that you have set the right permissions!! The following work for me:
Code:
chmod 600 privatekey
chmod 600 .ssh/authorized_keys
chmod 700 .ssh
When I had my .ssh directory permissions wrong, my authentication failed without any warnings or errors.

Last edited by selahlynch; 02-02-2011 at 09:16 AM.
 
  


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
ssh public key authentication teacup Linux - Networking 4 11-28-2011 12:27 AM
ssh public key authentication problem flgal3 Linux - Software 21 02-06-2009 12:15 PM
SSH - Problem with Public Key Authentication HaPagan Linux - Security 5 11-29-2005 12:27 AM
ssh public key authentication to different remote home directory shawn_t Linux - Networking 2 03-20-2005 04:39 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 09:47 PM.

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