Bookworm setup ssh: Difference between revisions
From embeddedTS Manuals
(Created page with "{{:Bullseye setup ssh}}") |
No edit summary |
||
Line 1: | Line 1: | ||
Openssh is installed in our default Debian image, but by default openssh does not permit root logins, and requires a password to be set. Additionally, a host key is required if one hasn't already been created on the target board. To allow remote root login: | |||
<source lang=bash> | |||
sed --in-place 's/#PermitRootLogin prohibit-password/PermitRootLogin yes/' /etc/ssh/sshd_config | |||
systemctl restart ssh.service | |||
passwd root # Set any password | |||
</source> | |||
If you ssh to this system it will now support ssh as root. |
Latest revision as of 11:13, 28 June 2023
Openssh is installed in our default Debian image, but by default openssh does not permit root logins, and requires a password to be set. Additionally, a host key is required if one hasn't already been created on the target board. 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.