Where I currently am I have a requirement to set PermitRootLogin to no for ssh.
I would like to update all of my severs at the same time with passwordless login, however without the root account enabled is there a way to do this?
|
feedback
|
|
Create a script on the server that handles your updates, then configure it in /etc/sudoers to allow it to be executed without a password.
Obviously make sure the update scripts don't have access to anyone but root. You can then setup SSH keys for your update users and execute it remotely via SSH:
In that example, updatescript simply echoes output of | |||
|
feedback
|
|
Set PermitRootLogin to without-password. Then, install a tool like clusterssh. That way you can manually update all servers simultaneously. Or, you can invest in implementing puppet, which makes it easy to make sure everything is always identical on all servers (meaning you can have updates installed at a certain time on all machines simultaneously) and doesn't require a root login. Does require some time to setup though. | |||||||
feedback
|
|
ssh in with any user... from there... either su to root... or setup that user as a "sudoer" and sudo yum update. | |||
feedback
|