Setup the new user
:~$ sudo useradd -d /home/username -m -s /bin/bash username
:~$ sudo passwd username
Enter new UNIX password: NEWPASSWORD
Retype new UNIX password: NEWPASSWORD
passwd: password updated successfully
You also need to add to the sudo file
:~$ sudo visudo
Go to the line ALL = (ALL) [casino great britain]( ALL and add the new user following example of admin (the leading % not needed)
Give the user ssh access
:~$ sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.original
:~$ sudo chmod a-w /etc/ssh/sshd_config Change PasswordAuthentication to yes
:~$ sudo /etc/init.d/ssh restart

Previous Post
Next Post
OpenParty 第一次参加这种交流会