Debian: Simplify the SSH command
By shortening PasswordAuthentication to Password, we get the same effect for less typing. Also, switch to systemctl, since that's what the Live CD uses. This is consistent with the installed system.
parent
6fd5b199ea
commit
323c56a5ba
|
@ -24,9 +24,8 @@ If you have a second system, using SSH to access the target system can be conven
|
||||||
|
|
||||||
$ sudo apt update
|
$ sudo apt update
|
||||||
$ sudo apt install --yes openssh-server
|
$ sudo apt install --yes openssh-server
|
||||||
$ sudo sed -i "s/#PasswordAuthentication yes/PasswordAuthentication yes/g" \
|
$ sudo sed -i "s/#Password/Password/" /etc/ssh/sshd_config
|
||||||
/etc/ssh/sshd_config
|
$ sudo systemctl restart ssh
|
||||||
$ sudo service ssh restart
|
|
||||||
|
|
||||||
**Hint:** You can find your IP address with `ip addr show scope global | grep inet`. Then, from your main machine, connect with `ssh user@IP`.
|
**Hint:** You can find your IP address with `ip addr show scope global | grep inet`. Then, from your main machine, connect with `ssh user@IP`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue