Web lists-archives.com

Re: Peculiar problem with root login




Normally you can´t login via Root, because there is no entry in the passwd file.
That is because it is no good Idea to work as root.
the best way for SSH is by public key, without the need for Passwords.
There are a lot of Howto´s in the net.
Hope that helps a little.

Am 12.06.2017 um 15:50 schrieb Harry Putnam:
> Running debian jesse in a vbox vm on a Solaris host
>
> I have what seems like an unusual problem with root login on this
> host.
>
> I've done the normal things one does to allow root login; that is, add
>
>    PermitRootLogin yes
>
> to /etc/ssh/sshd_config
>
> Restart ssh, and in fact this host has been rebooted a few times since
> adding that Permit line.
>
> I set sudo up to work with no passwd for a certain user long ago and
> so I was able to redo root passwd just to make sure there wasn't some
> error there.
>
> Still, I cannot login as root user  I don't mean at the main login
> screen one gets on bootup, but from an xterm in a running session.
>
> Of course, checked to see if Caps lock was on... 
>
> I've checked output of ssh -vvv root@localhost, and see nothing very
> exciting.. just asking for password and rejecting it repeatedly:
>
> debug1: Next authentication method: password
>   root@localhost's password: 
>   debug2: we sent a password packet, wait for reply
>   debug1: Authentications that can continue: publickey,password
>   Permission denied, please try again.
>
> This password has been in use for many years on vm hosts behind
> firewall etc etc. So, there is literally NO chance I'm just getting it
> wrong.  Not to mention as I said above that I redid the passwd in this
> most recent attempt to get it working.
>
> I'm fresh out of ideas as to what else to do here.
>
> The auth log shows:
>
>   Jun 11 14:50:55 d2 sshd[2830]: pam_unix(sshd:auth): authentication
>   failure; logname= uid=0 euid=0 tty=ssh ruser= rhost=d.local.lan
>   user=root
>
>   Jun 11 14:50:57 d2 sshd[2830]: Failed password for root from
>   127.0.0.1 port 54522 ssh2
Good luck,
-- 
Signatur
------------------------------------------------------------------------------------------
FOTO <http://www.ruehmann.name> 	
Jan-Peter Rühmann & Kuma
	
QR-Code (ME-Card) <http://www.ruehmann.name>
Gubkower Str. 7 	
TELEFON:   +49 (38205) 65484
18195 Prangendorf 	
FAX:   +49 (38205) 65212
Deutschland / MVP   	
MOBILE:   +49 (162) 1316054
PIRATENPARTEI <http://piratenpartei-mv.de/> VER.DI <http://rostock.verdi.de/> EUROPA
DEUTSCHLAND MECKLENBURG-VORPOMMERN ROSTOCK
EMAIL:   Jan-Peter@xxxxxxxxxxxxx <mailto:Jan-Peter@xxxxxxxxxxxxx>
  ICQ:   <http://www.icq.com> 288192920
<http://www.icq.com/people/about_me.php?uin=288192920>   Sprechen
<http://www.icq.com/people/cmd.php?uin=288192920&action=message>   Hinzuf�gen
<http://www.icq.com/people/cmd.php?uin=288192920&action=add>
  Twitter Profil @JPRuehmann   <http://twitter.com/?q=JPRuehmann#>
  WhatsApp 491621316054   <https://www.whatsapp.com>
WEB:   http://www.ruehmann.name <http://www.ruehmann.name>

------------------------------------------------------------------------------------------
Die Verwendung der Daten zu Werbezwecken ist verboten.