Buster setup ssh

From embeddedTS Manuals
Revision as of 10:04, 24 January 2020 by Mark (talk | contribs) (Created page with "Openssh is installed in our default Debian image, but by default openssh does not permit root logins, and requires a password to be set. To allow remote root login: <source l...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Openssh is installed in our default Debian image, but by default openssh does not permit root logins, and requires a password to be set. To allow remote root login:

sed --in-place 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config
systemctl restart ssh.service
passwd root # Set any password

If you ssh to this system it will now support ssh as root.