[OpenIndiana-discuss] remote root login failing .. even after edits to sshd_config
hput
hput3 at fastmail.fm
Wed Nov 20 20:57:54 UTC 2024
I'm not understanding why I am unable to login remotely to IO vm via
ssh.
Far as I rememeber the only requirements to make that possible are to
add "PermitRootLogin yes" to /etc/ssh/sshd_config and restart the ssh
server.
Am I forgetting something else that is needed?
I've done these things in this order:
add PermitRootLogin yes to authentication section of /ssh/sshd_config
svcadm restart ssh
Note: Also tried svcadm disable ssh
svcadm enable -rst ssh
But when tried from remote host I get:
root # ssh -vv root at oi
OpenSSH_8.9p1 Ubuntu-3ubuntu0.10, OpenSSL 3.0.2 15 Mar 2022
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolving "oi" port 22
debug1: Connecting to oi [192.168.1.220] port 22.
debug1: connect to address 192.168.1.220 port 22: Connection refused
ssh: connect to host oi port 22: Connection refused
However logged in as my user on OI I can run:
ssh root at localhost and it works as expected.
What am I missing?
More information about the openindiana-discuss
mailing list