ssh

SSH

June 14, 2022
linux, ssh

SSH - Secure Shell # https://selectel.ru/blog/ssh-ubuntu-setup/ Enabling SSH # sudo apt update && sudo apt install openssh-server sudo systemctl status ssh sudo ufw allow ssh Disabling SSH # sudo systemctl disable --now ssh Re-enable SSH # sudo systemctl enable --now ssh Disable password authentication in SSH # sudo nano /etc/ssh/sshd_config PasswordAuthentication no sudo systemctl restart ssh Create an RSA key pair # ssh-keygen -t rsa Correct file permissions for ssh keys and config # ssh-keygen -t rsa -b 4096 -N '' -C "email@gmail. ...