ubuntu
- . sudo apt-get install openssh-server
- sudo gedit /etc/ssh/sshd_config modify as follow PermitEmptyPasswords yes
- sudo sed -i 's/nullok_secure/nullok/' /etc/pam.d/common-auth
- sudo service ssh restart
One more thing that I need to remind is that you have to create a user without password
you can use this command to delete the password of a account to make it empty
sudo adduser xxxx
sudo passwd -d xxxx
转载于:https://blog.51cto.com/wb127/2162791