Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-29-2010, 09:46 AM   #16
Sanford Stein
Registered: Jun 2008
Location: Evanston, Illinois
Distribution: RHEL 6.4
Posts: 126

Original Poster
Rep: Reputation: 17

Permissions changed on the target machine as indicated:

[mbp5vdrzqtui@pear .ssh]$ ls -ld
drwx------ 2 mbp5vdrzqtui mbp5vdrzqtui 4096 Mar 29 10:38 .
[mbp5vdrzqtui@pear .ssh]$ ls -l
total 16
-rw------- 1 mbp5vdrzqtui mbp5vdrzqtui 427 Mar 29 10:34 authorized_keys
-rw-r----- 1 mbp5vdrzqtui mbp5vdrzqtui 427 Mar 29 10:36 authorized_keys2
-rw-r--r-- 1 mbp5vdrzqtui mbp5vdrzqtui 427 Mar 29 10:38 id_rsa.pub_CEDAR
-rw-r--r-- 1 mbp5vdrzqtui mbp5vdrzqtui 1588 Mar 25 17:12 known_hosts

ssh and scp still ask for passwords.
Old 03-29-2010, 11:22 AM   #17
Registered: Jul 2008
Location: Chennai, India
Distribution: RHEL5, Ubuntu
Posts: 191

Rep: Reputation: 37
Find out whether the public key is in authorized_keys or authorized_keys2. If it is in authorized_keys2, then please check its permissions and make sure it to be 600, not 640. It should work at any cost, if it is not working, please try the entire process with a new user in both machines. I am sure it will work. Because whatever steps you have mentioned r all correct as far as i can grasp.

Last edited by saagar; 03-29-2010 at 11:25 AM.
Old 03-29-2010, 02:44 PM   #18
Registered: Oct 2004
Location: Adelaide Hills, South Australia
Distribution: RHEL 5&6 CentOS 5, 6 & 7
Posts: 572

Rep: Reputation: 56
Did you perhaps cut and paste the public key into the authorized_keys file? I've done this before and it can put line terminators where you don't want them. It's easy to fix by joining each line back again so the record in the file is a single long string.
Old 03-31-2010, 12:10 PM   #19
Sanford Stein
Registered: Jun 2008
Location: Evanston, Illinois
Distribution: RHEL 6.4
Posts: 126

Original Poster
Rep: Reputation: 17
Saagar, I tried authorized_keys2 and it made no difference.
Ian, I did a diff and a wc on the public key and the authorized_keys file and they were identical.

Finally I started the whole process over with a different user and everything seems to be working just fine. There must be something about that one login that is different.
Since we don't really care about what the non-root login is, I guess that we are all set.
Thanks to everyone for your help.



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
did not find any option for root password for root user in ubuntu 9.10 linux.ab Linux - Newbie 1 03-02-2010 02:58 AM
ssh without password from user to root on same linux enterprise 5 machine linux2010 Linux - Newbie 3 01-24-2010 06:57 PM
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 10:28 PM
Help! Cannot Add a User to User Manager or Change Root Password lennysokol Linux - General 2 06-25-2005 09:59 AM
Get password of root from SSH? Gerardoj Linux - General 4 08-09-2003 11:07 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:22 AM.

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