start ssh service
$ sudo systemctl start sshd.service
enable ssh service to restart upon reboot
$ sudo systemctl enable sshd.service
make sure port 22 is open
$ system-config-firewall
enable public key exchange
generate keys
$ ssh-keygen -t rsa
create ssh directory on server
$ ssh srvr_hostname "mkdir .ssh; chmod 0700 .ssh"
copy public key to server
$ scp .ssh/id_rsa.pub srvr_hostname:.ssh/authorized_keys2
No comments:
Post a Comment