Debian: Enable SSH: Difference between revisions
From wiki.jacobjohns.com
jwiki>jjohns Created |
m 2 revisions imported |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
[[File:Debian logo.png|center|frameless]] | [[File:Debian logo.png|center|frameless]] | ||
<hr /><br /> | |||
# Install openssh-server | # Install openssh-server | ||
#* <code>apt install openssh-server -y</code> | #* <code>apt install openssh-server -y</code> | ||
Latest revision as of 16:06, 27 July 2024
- Install openssh-server
apt install openssh-server -y
- Check the service is running after installation
systemctl status ssh
- If not running start the service
systemctl start ssh
- Enable ssh at startup
systemctl enable ssh
- Optionally enable root access (not secure)
- Open
/etc/ssh/sshd_config - Add the following to the end of the file, search for and change the value, or uncomment the line.
PermitRootLogin yes
- Restart ssh service
systemclt restart ssh
- Open
