Open port 22:
-
vim /etc/ssh/sshd_config
-
#Port 22 -->Port 22
-
systemctl restart sshd
Share the key:
- ssh-keygen
- ssh-copy-id -i .ssh/id_rsa.pub root@192.168.*.*
- input the password, verify it with ssh root@192.168.*.*(no password needed)
Open port 22:
vim /etc/ssh/sshd_config
#Port 22 -->Port 22
systemctl restart sshd
Share the key: