I have created 2 Google Compute servers using Google Cloud. Both are RedHat. (I tried using CentOS as well.)
Google by default creates a default user on both the servers.
The default user name is
gtest1. It is letting me login to both these servers using
What I'm trying to do is this:
- I logged into server1 using
- I logged into server2 using
- I created a new user on server2 - username:
BUT now when I try to login to server2 from server1 using ssh test2@server2 it is giving me below error:
Permission denied (publickey,gssapi-keyex,gssapi-with-mic)
I checked the logs on server2. It says that connection closed by server1. That means, something is wrong at the source server.
- When I try to do ssh server2 from server1 - it works
- When I try to do ssh test2@server2 - it throws above error.
I'm not sure why it's not letting me enter the password.
This started like 1.5 months back. Since then I couldn't work on any of my projects using Google Cloud compute instances.
There was a time I was having 25 redhat/centos servers and I used to create/delete/ssh from these servers without any issues. I'm a linux admin - but I'm not sure what is wrong here.
Anyone - any thoughts?