LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 06-19-2008, 07:38 AM   #1
athreyavc
Member
 
Registered: May 2004
Location: bangalore
Distribution: Cent OS, Ubuntu
Posts: 105

Rep: Reputation: 15
passwordless login on the same machine via ssh


Hi All,

I am into a tricky situation here

I have a host name "fedora"

I create rsa and dsa keys for root on fedora . Then I copy the .pub file contents to ~/.ssh/authorized_keys file .

then from the same machine i try ssh@fedora and I am able for passwordless login

Then I create a normal user "kevin" do the key generarion and all and do

ssh kevin@fedora

But. it does not allow me for passwordless login , It asks for password every time

Please help me on the same.


Thanks and Regards
 
Old 06-19-2008, 10:58 AM   #2
rajwinder
LQ Newbie
 
Registered: Jun 2008
Posts: 21

Rep: Reputation: 15
As far as i know .. i think u need to switch to "kevin" user > create private and pub keys > put public key in authenticated keys in kevin's home directory is that what u did ?
 
Old 06-20-2008, 12:12 AM   #3
athreyavc
Member
 
Registered: May 2004
Location: bangalore
Distribution: Cent OS, Ubuntu
Posts: 105

Original Poster
Rep: Reputation: 15
Hi,

Thanks for the reply.

I figured it out somehow.

ssh rejectes anything which is group writeable in the path /home/kevin/.ssh

So, When I checked the file ~/kevin/.ssh/authorized_keys i found it was group writeable.

I changed it to rwx------

Then everything went allright.

Issue "CLOSED"

Thanks and Regards,
 
  


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
machine not allowing login thru virtual console, only thru ssh dsids Linux - Newbie 2 01-15-2007 11:46 AM
Can't use passwordless ssh sunhui Linux - Security 1 10-03-2006 08:29 PM
Passwordless SSH with SSH commercial server and open ssh cereal83 Linux - General 7 04-18-2006 12:34 PM
Regarding Passwordless SSH nedian123 Linux - Software 1 08-05-2004 05:07 PM
can't login to a Slack machine using a NIS account through ssh nIMBVS Slackware 2 07-15-2004 02:15 AM


All times are GMT -5. The time now is 01:44 AM.

Main Menu
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