Run Command Without Entering Sudo Password in remote kali system.

This is very useful if you have system that you need to run commend without keep typing su in the beginning of the command line and then enter the sudo password.

Bring up terminal and ssh into the system ssh your host ip -l username and then enter the psw

You will be in the ssh line on the remote system.

Type sudo visudo and then the psw

add this line to the end of the file and save and done.

username ALL=(ALL) NOPSSWD:ALL

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s