Last active
May 3, 2018 00:59
-
-
Save nguyentienlong/a1f1e1a4c22cf8bea4f5397550f16395 to your computer and use it in GitHub Desktop.
sudo without password
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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