ssh-keygen -t rsa -b 4096 -C "[email protected]" -f ~/.ssh/millavefavorita
chmod 600 ~/.ssh/millavefavorita
Actualiza los paquetes
sudo apt update
Instala el servidor openssh
sudo apt install -y openssh-server
Comprueba que el servidor OpenSSH está funcionando
sudo systemctl status ssh
You may need to allow SSH incoming connections in firewall. So, use the below command to create a rule in UFW to allow SSH connections from external machines.
sudo ufw allow ssh
sudo ufw enable
sudo ufw reload
eval "$(ssh-agent -s)"
ssh-add ~/.ssh/intertech_rsa