Tuesday, March 30, 2010

Sun Fire V120 as NAS part 3: Enabling ssh root login

Ok. I'm tired. This server is too loud to work behind it. Because I don't want to create users yet and I want to admin the server from another room I decided to enable login with the root account, like my other linux servers

Very easy to do, from the serial console logged as root: edit /etc/ssh/sshd_config and change:
PermitRootLogin no >>PermitRootLogin yes

SPECIAL TIP!!!! I can't use the vi editor from the console as I can't see all the lines of the file. I uploaded to my main server via ftp, modified it in my workstation an then it downloaded again.
# svcadm disable svc:/network/ssh:default
# ftp 192.168.2.254
(...)
# svcadm enable svc:/network/ssh:default

No comments: