Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat Jul 25, 2009 10:13 am 
Offline
Junior Member

Joined: Sat Jul 25, 2009 10:05 am
Posts: 26
Hello

I have setup SSH with Public Key Authentication and this works fine for one account, but not the other. Neither account is root, they both use Putty as the client, and keys were generated from putty-gen. The relevant public key for each user is in /home/<user>/.ssh/authorized_keys, with the key files themselves also in this folder. In putty, each user has a saved session, containing their key and enable authentication by Pageant is ticked, with both private keys loaded in pageant.

The error on the second account is no supported authentication methods available.

Both users are in the same group and listed in AllowUsers and AllowGroups in sshd.config. I have been trying to figure this out for the past couple hours now, but just can't see what the problem is. Any thoughts on what the issue could be, would be greatly appreciated.

Thanks

~SC


Last edited by Serial Cookie on Mon Jul 27, 2009 4:34 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sat Jul 25, 2009 11:00 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Does PuTTY say "Server denied our key" before tossing the "No supported auth method available" message?

Are the /home/(user)/.ssh/authorized_keys files owned by the respective users?

Does the problematic user's home directory coincide with /home/(user) ?

Any typos, e.g. authurized_keys?


Top
   
 Post subject:
PostPosted: Sat Jul 25, 2009 12:19 pm 
Offline
Junior Member

Joined: Sat Jul 11, 2009 7:19 am
Posts: 30
Location: Martinique
log into the linode through LISH, then check out /var/log/auth.log - this file contains info on login errors. You'll get clear information on why you're actualy unable to log in.

hope it helps.


Top
   
 Post subject:
PostPosted: Mon Jul 27, 2009 4:34 pm 
Offline
Junior Member

Joined: Sat Jul 25, 2009 10:05 am
Posts: 26
Hi

I knew the problem would be something simple, and of course it was. I have found the problem was authorized_keys being chmod 0600, I have since set it to 0644, and all is well.

Thanks guys


Top
   
 Post subject:
PostPosted: Tue Jul 28, 2009 1:43 am 
Offline
Senior Member

Joined: Fri Sep 12, 2008 3:17 am
Posts: 166
Website: http://independentchaos.com
Serial Cookie wrote:
[...]uthorized_keys being chmod 0600, I have since set it to 0644, and all is well.


Strange my .ssh directory is 0700 and all files underneath except id_rsa.pub I've chmod 0600 with no problems whatsoever.

_________________
If it ain't broke, you didn't tweak it enough. If it is broke, use more duct tape.
http://independentchaos.com


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group