Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sat May 12, 2012 2:15 pm 
Offline
Senior Newbie

Joined: Fri Dec 30, 2011 12:24 pm
Posts: 13
Website: http://www.nirm.al
Why do I get this error when doing ssh login on my root user permission denied (public key) ? But when I try ssh login on my another user it works.

Then I tried changing ssh-keygen and now I can't ssh login on my both users. How can I solve this problem?

Thanks!


Top
   
 Post subject:
PostPosted: Sat May 12, 2012 2:18 pm 
Offline
Senior Member
User avatar

Joined: Thu Nov 24, 2011 12:46 pm
Posts: 139
Location: Mesa AZ
Not a lot of info being provided.

Have you tried using ssh -v to get verbose info to see where it thinks it is failing?

**EDIT** BTW.. when I first read this, I though you were able to login via root but not via a normal user.

_________________
Kevin a.k.a. Dweeber


Last edited by Dweeber on Sat May 12, 2012 2:51 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sat May 12, 2012 2:24 pm 
Offline
Senior Newbie

Joined: Fri Dec 30, 2011 12:24 pm
Posts: 13
Website: http://www.nirm.al
I tried, it shows

Connecting to IP address port 22
connection established

Then it checks the blacklist file, identity files on .ssh..atlast it shows permission denied(private key) and I really can't find where the problem is from. Could you guide me?

UPDATE:
I suppose here the problem is from

debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/user/.ssh/id_rsa
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/user/.ssh/id_dsa
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey
debug1: Trying private key: /home/user/.ssh/id_ecdsa
debug1: No more authentication methods to try.
Permission denied (publickey).


Last edited by rkumarnirmal on Sat May 12, 2012 2:29 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sat May 12, 2012 2:29 pm 
Offline
Senior Member
User avatar

Joined: Thu Nov 24, 2011 12:46 pm
Posts: 139
Location: Mesa AZ
rkumarnirmal wrote:
I tried, it shows

Connecting to IP address port 22
connection established

Then it checks the blacklist file, identity files on .ssh and I really can't find where the problem is from. Could you guide me?

Based on the info you are providing... not really since I can't see what you are seeing.

The -v flag generates a lot of info which contains info about each step the process is taking along with the results. Something is failing, but without the output???? can't even guess other than you might have permissions of the files setup incorrectly.

If you are uncomfortable posting that kind of info, you should find someone that can look at it for you privately.

_________________
Kevin a.k.a. Dweeber


Top
   
 Post subject:
PostPosted: Sat May 12, 2012 2:30 pm 
Offline
Senior Newbie

Joined: Fri Dec 30, 2011 12:24 pm
Posts: 13
Website: http://www.nirm.al
Please check my previous reply :)


Top
   
 Post subject:
PostPosted: Sat May 12, 2012 2:34 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
It is common practice to deny root logins using any authentication method -- some distros do this by default. If you really want to allow this, check your sshd config file for a line that reads 'PermitRootLogin no' and change accordingly.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Sat May 12, 2012 2:40 pm 
Offline
Senior Newbie

Joined: Fri Dec 30, 2011 12:24 pm
Posts: 13
Website: http://www.nirm.al
Accidentally I changed the .ssh/id_rsa file which is why creating the problem. I can't access the root login because I disabled 'PermitRootLogin' and the worst one is now I can't even login through my another user because of changing the keygen. So how can I upload id_rsa file to server as FTP rejects the connection too.

Please someone help me. I'm a newbie in linux administration :(


Top
   
 Post subject:
PostPosted: Sat May 12, 2012 2:47 pm 
Offline
Senior Newbie

Joined: Fri Dec 30, 2011 12:24 pm
Posts: 13
Website: http://www.nirm.al
pclissold wrote:
It is common practice to deny root logins using any authentication method -- some distros do this by default. If you really want to allow this, check your sshd config file for a line that reads 'PermitRootLogin no' and change accordingly.


sshd in server? I can't able to login to the linode server. so how can I change it?


Top
   
 Post subject:
PostPosted: Sat May 12, 2012 2:49 pm 
Offline
Senior Member
User avatar

Joined: Thu Nov 24, 2011 12:46 pm
Posts: 139
Location: Mesa AZ
Use your remote access via the linode console and you can get into the box and make the changes you need to make.

_________________
Kevin a.k.a. Dweeber


Top
   
 Post subject:
PostPosted: Sat May 12, 2012 6:43 pm 
Offline
Senior Member
User avatar

Joined: Sun Jan 18, 2009 2:41 pm
Posts: 830
If sshd is hosed, you can still access your system via Lish or the (somewhat buggy) AJAX console.


Top
   
 Post subject:
PostPosted: Sat May 12, 2012 10:36 pm 
Offline
Junior Member

Joined: Mon Sep 19, 2011 2:48 am
Posts: 28
I had to use LISH for this same reason. I had ccidently changed the group of the ssh folder for my user and had root login disabled as well (which is a good thing).

I went into the remote access tab and decided to try the ajax console and while it was a little slow, it worked great. I was able to log in and fix my little mess up with almost no effort.

Gotta love Linode at a time like that.


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


Who is online

Users browsing this forum: nqservices and 6 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