You are not logged in.
I'm able to connect as root, despite /etc/ssh/sshd_config being default. I can't even prevent root login by explicitly using
PermitRootLogin noCan anyone reproduce? Both machines are running Arch and up-to-date.
Last edited by alphaniner (2014-03-06 16:10:19)
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
$ ssh root@localhost
Permission denied (publickey).;]
That's a solution to use in the interim, I'll see if I can reproduce the problem with PasswordAuthentication enabled.
Edit: Nope. With "PermitRootLogin no", root can't log in on my machine. Could you have multiple conflicting "PermitRootLogin" statements in your config file?
Last edited by WorMzy (2014-03-05 22:10:30)
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Yeah, mine is telling me that permission is denied due to publickey as well... I would have never noticed had I not stumbled upon this thread.
Offline
sshd_config is default: I uninstalled, deleted /etc/ssh and reinstalled. But here's the uncommented lines anyway:
$ grep -v "^[[:space:]]*#\|^$" /etc/ssh/sshd_config
AuthorizedKeysFile .ssh/authorized_keys
ChallengeResponseAuthentication no
UsePAM yes
PrintMotd no # pam does that
UsePrivilegeSeparation sandbox # Default for new installations.
Subsystem sftp /usr/lib/ssh/sftp-serverMaybe I fat fingered something yesterday, because now it seems that if I add PermitRootLogin no I can't logon as root. But IIRC root should be disallowed by default.
Also just FYI security isn't really a concern for me, I only brought this up in case it's a bug.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline
Think you're remembering wrong. ![]()
From man sshd_config:
PermitRootLogin
Specifies whether root can log in using ssh(1). The argument must be ``yes'',
``without-password'', ``forced-commands-only'', or ``no''. The default is ``yes''.Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Well, that's weird. I know in the past I had to specify PermitRootLogin yes to be able to login as root. I'm sure because it's the only reason I'm even aware of the option...
Oh, well. Sorry for wasting everyone's time.
But whether the Constitution really be one thing, or another, this much is certain - that it has either authorized such a government as we have had, or has been powerless to prevent it. In either case, it is unfit to exist.
-Lysander Spooner
Offline