Help answer threads with 0 replies.
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 01-22-2010, 05:12 AM   #1
LQ Newbie
Registered: Jan 2010
Posts: 5

Rep: Reputation: 0
ssh without password from user to root on same linux enterprise 5 machine


my application is installed on root of RH enterprise 5 and is run via user on the same machine. This need ssh without password from the user.
i do the following :
1. run ssh-keygen in .ssh directory of the user.
2. copy the as the authorized-keys in the root's .ssh directory
3 chmod 600 to the authorized_keys
4.restart the machine
5. login from the user and ssh SER ( SER is the entry in the /etc/hosts with the ip address of the machine)
6 It still prompt for the password

plz suggest me how can i ssh from the user to the machine without password.

Old 01-22-2010, 05:43 AM   #2
Senior Member
Registered: Sep 2005
Location: France
Distribution: LFS
Posts: 1,591

Rep: Reputation: 79
1/ Be sure the access rights of ~/.ssh are 600
2/ start ssh-agent
3/ add the key you created with ssh-add
Old 01-22-2010, 06:20 AM   #3
LQ Veteran
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381Reputation: 2381

Also check to see if PermitRootLogin is enabled. This is, seen from a security point of view, a bad idea, but you do need it to solve your problem.

PermitRootLogin can be found/set in /etc/ssh/sshd_config

Hope this helps.
Old 01-24-2010, 07:57 PM   #4
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.7, Centos 5.10
Posts: 16,925

Rep: Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215Reputation: 2215
If it's on the same machine, avoid creating that security hole; use sudo instead.


from, machine, password, ssh, sshkeygen, user

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
how do a user can change its LDAP password on Linux client machine sharjeel Linux - Server 5 05-13-2011 02:25 AM
user password not accepted when using SSH to a remote linux box emeak Linux - Newbie 2 08-06-2009 08:10 AM
How could normal user obtain root password or change root password ckamheng Debian 18 02-18-2009 11:28 PM
Forgot root password for Redhat Enterprise linux geordzilla Linux - Newbie 6 12-20-2005 02:43 AM

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