SSH setup
28 sudo vim /etc/ssh/sshd_config.d/disable_root_login.conf
29 /etc/init.d/ssh reload
30 sudo systemctl restart ssh
sudo vim /etc/ssh/sshd_config.d/disable_root_login.conf
sudo systemctl restart sshd
arthur_wambst@wingsBackup:~$ cat /etc/ssh/sshd_config.d/disable_root_login.conf
sudo echo "ChallengeResponseAuthentication no\nPasswordAuthentication no\nUsePAM no\nPermitRootLogin no" > /etc/ssh/sshd_config.d/disable_root_login.conf
export PORT=.
ssh-copy-id -p $PORT napo280.ovh
ssh napo280.ovh -p $PORT
cat <<EOF | sudo tee /etc/ssh/sshd_config.d/disable_root_login.conf
ChallengeResponseAuthentication no
PasswordAuthentication no
UsePAM no
PermitRootLogin no
EOF
sudo systemctl restart sshd
arthur_wambst@WORK-KARTOFFEL:~/TP_assembleur$ ssh-copy-id -p 2331 napo280.ovh
No Comments