There's usernames 'core', 'onprem_shell', 'user', and 'root' in play here, and I think it'd be extraordinarily easy to perhaps use sudo or another privilege changing tool in such a way that it is using the wrong private key or the wrong authorized_keys file, etc.
Hello Arunaav, I'm curious if you could double-check the testing environment to make sure the user accounts are as you expected?
chmod 0600 /home/core/ .ssh/authorized _keys shell@10. 14.169. 25
ssh -i .ssh/id_rsa onprem_
ssh -v user@10.14.169.25
debug1: identity file /root/.ssh/id_rsa type -1
There's usernames 'core', 'onprem_shell', 'user', and 'root' in play here, and I think it'd be extraordinarily easy to perhaps use sudo or another privilege changing tool in such a way that it is using the wrong private key or the wrong authorized_keys file, etc.
Thanks