Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Passwordless sudo

ssh ubuntu-1
sudo nano /etc/sudoers

and add this line:

yonit  ALL = (ALL) NOPASSWD: ALL

Repeat for all the servers.

Another option would be copying the content of my .ssh/authorized_keys in the servers to /root/.ssh/authorized_keys which would allow me to connect from my user directly to the root user on the remote servers.