I'm working on a Virtual Machine where I have Ubuntu Server, in that server I connect to my cloud server (ubuntu), via ssh , but when I tried to log in with this syntax:
ssh subdomain.example.com
It brings this error :
Permission denied (publickey)
But If I use any of this syntax :
ssh my_user@subdomain.example.com
ssh my_user@cloud_IP
I login without a problem. So I was just wondering If the first syntax is wrong or I have something messed up within sshd_config
file or my cloud server firewall service configuration. I've used ssh -vvv subdomain.example.com
to debug it and this is what It shows: image