Ssh – Managing servers over ssh with PermitRootLogin=no

remote-accesssshsudo

If I can't ssh as root to each of my servers how can I make modifications in an efficient way?

I am not allowed to setup ssh keys or open the sudoers file with NOPASSWD. I can't install puppet or spacewalk.

Sometimes when I try to include a sudo command in a script I get the error "no tty present." Has anyone worked in an environment like this?

Best Answer

You could always login as a regular user and su root to the root user once you're in the server.