Table of Contents
Install and configure OpenSSH server #
# Ubuntu, Debian apt -y install openssh-server # Fedora, CentOS yum -y install openssh-server # Edit the configuration file vim /etc/ssh/sshd_config # and disallow root login PermitRootLogin no
Edit the server configuration file:
vim /etc/ssh/sshd_config # disallow root login PermitRootLogin no
Enable SSH key-pair authentication
(passwordless) #
On the client:
user:~$ ssh-keygen -t rsa