If you have enabled the deletussh service, you can connect to any user with a valid account. This may cause some security problems, because some remote password cracking tools can try common usernames/passwords. Back up the configuration file sudocp/etc/ssh/sshd_config/etc/ssh/sshd_config.ORIGINAL of ipvtussh to edit the configuration file sudogedit/etc/ssh/sshd_conf.
If you have enabled the Ubuntu SSH service, you can connect to any user with a valid account. This may cause some security problems, because some remote password cracking tools can try common usernames/passwords.
Back up the configuration file of the Ubuntu SSH service
Sudo cp/etc/ssh/sshd_config/etc/ssh/sshd_config.ORIGINAL
Edit configuration file
Sudo gedit/etc/ssh/sshd_config changes the PermitRootLogin parameter from yes to no. Super Users cannot directly connect to the Internet through remote connection. Add the AllowUsers parameter to set the user name for the remote connection (separated by spaces ).
Then Restart sshd.
Sudo/etc/init. d/ssh restart