If I ssh to a domain provided by dyndns, does my password go through them?

1

I'm running Ubuntu on my work PC, and my work place provides me with a static IP address but not with a domain. It's sometimes useful for me to connect to that PC through ssh, but it's not common enough for me to instantly remember the IP number. So I set um a dyndns account, and associated a short and intuitive domain name to that IP.

Here's my question, when I try to ssh to the domain, it asks me

$ ssh me@something.there.foo
The authenticity of host 'something.there.foo (xx.xx.xx.xx)' can't be established.
RSA key fingerprint is 'ALPHANUMERIC STRING'
Are you sure you want to continue connecting (yes/no)?

That surprised me a little bit. I have already registered the RSA fingerprint by connecting directly to the IP address. I thought the domain name was simply a convenient way of pointing me in the right direction (i. e. the ip address), but that message makes me think my data is actually going through their servers or something.

Which one is it? Am I sending my password through someone else's server? Or is ssh just really really careful, thus warning me even if the final destination is a know host?

The ssh server I'm using is the openssh-server package.

Malabarba

Posted 2010-06-11T15:00:41.287

Reputation: 7 588

Answers

7

ssh is asking again; just because you connected to a host doesn't mean you trust that host to be the real something.there.foo.

You can compare the fingerprints to check they are indeed the same host:

diff -u <(ssh-keygen -F something.there.foo -l) <(ssh-keygen -F xx.xx.xx.xx -l)

There are ways to put the key fingerprint in DNS, but without DNSSEC security won't increase much.

Once you have connected to the host you can trust ssh to warn you if it changes.

Tobu

Posted 2010-06-11T15:00:41.287

Reputation: 2 584

1Interesting, I thought ssh was asking me whether I trusted dyndns, but actually it was asking me whether I trusted my laptop as the final destination of the domain I asked for. – Malabarba – 2010-06-12T03:11:08.463

3

If you haven't accessed the server via something.there.foo, it will ask even if you've accessed the same server via other methods (ip address or alternate domain).

kweerious

Posted 2010-06-11T15:00:41.287

Reputation: 356

2

You aren't sending through their servers. The reason for the alert is the domain/ip isn't dns reversible. Which means when you dns the ip it does not come out as something.there.foo.

Unfundednut

Posted 2010-06-11T15:00:41.287

Reputation: 6 650