Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Can't ssh in as root
PostPosted: Fri Aug 01, 2014 7:47 pm 
Offline
Newbie

Joined: Fri Aug 01, 2014 7:43 pm
Posts: 2
Hi, after setting up my 14.04 linode by following most of this page

http://feross.org/how-to-setup-your-linode/

and setting a second user account, I ssh'd in as my second user account and continued setting things up.

I wanted to do 'reboot' and was told I need to be root to do that.

so I ssh'd in as root, but got 'invalid password' message.

So I reset my root password using this:

https://www.linode.com/docs/platform/ac ... -passwords "Resetting the Root Password"

I ssh in again and I am still am told 'invalid password'

Any suggestions?

Michael


Top
   
 Post subject: Re: Can't ssh in as root
PostPosted: Fri Aug 01, 2014 7:52 pm 
Offline
Senior Member

Joined: Mon Jan 02, 2012 12:45 pm
Posts: 365
Can you sudo to root from your second account? If you can then your password is OK and the issue is your ssh config


Top
   
 Post subject: Re: Can't ssh in as root
PostPosted: Fri Aug 01, 2014 7:57 pm 
Offline
Newbie

Joined: Fri Aug 01, 2014 7:43 pm
Posts: 2
Yes! I can do

sudo su root

successfully.

I will try and figure out what's wrong with my ssh config, thanks.


Top
   
 Post subject: Re: Can't ssh in as root
PostPosted: Fri Aug 01, 2014 8:32 pm 
Offline
Senior Member
User avatar

Joined: Tue Apr 13, 2004 6:54 pm
Posts: 833
Check "permitrootlogin" setting in sshd_config

_________________
Rgds
Stephen
(Linux user since kernel version 0.11)


Top
   
 Post subject: Re: Can't ssh in as root
PostPosted: Sat Aug 02, 2014 6:40 am 
Offline
Senior Member

Joined: Sun Mar 07, 2010 7:47 pm
Posts: 1970
Website: http://www.rwky.net
Location: Earth
Ubuntu 14.04 by default only allows root logins with ssh keys as sweh said check PermitRootLogin in /etc/ssh/sshd_config it will be set to without-password

_________________
Paid support
How to ask for help
1. Give details of your problem
2. Post any errors
3. Post relevant logs.
4. Don't hide details i.e. your domain, it just makes things harder
5. Be polite or you'll be eaten by a grue


Top
   
 Post subject: Re: Can't ssh in as root
PostPosted: Sat Aug 02, 2014 8:11 am 
Offline
Senior Member

Joined: Mon Jul 05, 2010 5:13 pm
Posts: 392
Our image allows root login with password over SSH. But following that guide involves setting PermitRootLogin to "no":

Quote:
Set “Port” to “44444” and “PermitRootLogin” to “no”. Save the file and restart the SSH service:


Top
   
 Post subject: Re: Can't ssh in as root
PostPosted: Sat Feb 07, 2015 12:37 pm 
Offline

Joined: Sat Feb 07, 2015 12:29 pm
Posts: 1
Hey. I'm having the same troubles as Mazz, except for I have no second user. I've followed the https://www.linode.com/docs/platform/ac ... -passwords document as well.


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


Who is online

Users browsing this forum: No registered users and 5 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