When using the ssh
or ftp
commands from the Bash shell, does the server that I am connecting to learn of the domain name used? I understand that the domain name is locally translated into an IP address via DNS. In HTTP, after that happens, the server is told the original domain name as well in order to serve the correct page, or to present the correct TLS cert (SNI).
host serverfault.com
GET /
Does a similar phenomenon happen when connecting to ssh
or ftp
?
I ask because I am trying to ssh into a server (GoDaddy webhosting) which expects a domain name, but is not letting me in when I try to connect via user@IPaddress
as the DNS is not yet moved to the GoDaddy IP address.
Answer
No, the SSH clients do not pass the DNS name you connected to on to the server.
As you said correctly, the name is resolved locally to the IP address.
It looks like I was wrong about FTP.
See the other answer for details.
Comments
Post a Comment