Report this

What is the reason for this report?

conecct with domain name insted of user and IP

Posted on February 8, 2021

I’m working on a Virtual Machine where I have Ubuntu Server, in that server I connect to my Droplet (Ubuntu as well), via ssh , but when I tried to login with this syntax:


ssh subdomain.mydomain.com 

It brings this error :

Permission denied (publickey)

But If I use any of this syntax:

ssh my_user@subdomain.mydomain.com
ssh my_user@Droplet_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 Droplet firewall service configuration (just my IP can access to my droplet).

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.