I have rsa keys setup between server A and server B. server A needs to ssh into server B without a password.
Problem is that server B is setup to login as sudo without password. So in order to get into server B, I have to log into a personal account, then do a "sudo su - accountname". I am not given access to a password - it logs in automatically.
Realize this is probably the stupidest thing you ever heard but it is what it is.
I can't get ssh to log into server B without prompting for password even though I've correctly setup public, private keys (tested on a normal server with username and password authentication.)
Is this because of sudo for server B messes up things? I read somewhere if you don't have password set for a server, ssh without password won't work.