Wiki‎ > ‎

Passwordless for sudo over ssh

posted Jul 21, 2016, 12:07 AM by Dong Xu   [ updated Jul 21, 2016, 12:10 AM ]

1) sudo vi /etc/sudoers:

jenkins ALL=(ALL) NOPASSWD: ALL

2) Put the line after all other lines in the sudoers file!

That worked for Ubuntu 14.4 and SUSE12

  3) ssh -t host "sudo <cmd>"
Comments