sudo apt-get purge openssh-server
sudo apt-get install openssh-server
sudo nano /etc/ssh/sshd_config
and disallow root login by settingPermitRootLogin no
Then add a line beneath it that says:
AllowUsers yourusername
and make sure
PasswordAuthentication
is set toyes
if you want to login using a password.Disable privilege separation by adding/modifying :
UsePrivilegeSeparation no
sudo service ssh --full-restart
출처: https://superuser.com/questions/1111591/how-can-i-ssh-into-bash-on-ubuntu-on-windows-10
댓글 없음:
댓글 쓰기