Skip to content

Instantly share code, notes, and snippets.

@nguyentienlong
Last active May 3, 2018 00:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nguyentienlong/a1f1e1a4c22cf8bea4f5397550f16395 to your computer and use it in GitHub Desktop.
Save nguyentienlong/a1f1e1a4c22cf8bea4f5397550f16395 to your computer and use it in GitHub Desktop.
sudo without password
## sudo without pwd
```
longka ALL=(ALL) NOPASSWD: ALL
%sudo ALL=(ALL:ALL) NOPASSWD: ALL
```
--
## disable ssh with pass
`PasswordAuthentication no`
#You might need to reload the ssh service
`sudo service ssh reload`
#That should do the trick ;)
#or more options type man sshd_config in to your terminal.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment