Chỉnh sửa file bằng quyền sudo

sudo nano /etc/ssh/sshd_config

Tìm đến dòng

PasswordAuthentication no

Và đổi nó thành

PasswordAuthentication yes

Lưu file này lại
Sau đó tiến hành khởi động lại SSH
Với Ubuntu/Debian

sudo service ssh restart

Với CentOS/RedHat

sudo service sshd restart

Cuối cùng tiến hành đặt mật khẩu cho tài khoản

sudo passwd $USER

Leave a Reply

Your email address will not be published. Required fields are marked *