Cài đặt bảo mật login key
Chúng ta nên sử dụng ssh key để truy cập server thay cho sử dụng password (chống hacker scan password)
Copy public key vào: ~/.ssh/cat authorized_keys
Disable login bằng password:
Sửa PasswordAuthentication no trong file /etc/ssh/sshd_config. Sau đó restart ssh: systemctl restart sshd
Để lại một bình luận