Issue 692 in connectbot: Invalid host key verification message displays when connecting to existing host with new algorithm

30 views
Skip to first unread message

conne...@googlecode.com

unread,
Mar 27, 2015, 3:54:59 PM3/27/15
to connectbo...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 692 by far...@gmail.com: Invalid host key verification message
displays when connecting to existing host with new algorithm
https://code.google.com/p/connectbot/issues/detail?id=692

What steps will reproduce the problem?
1. Connect to a host using, i.e., RSA
2. Verify the host's key fingerprint, which results in it being saved with
the host's profile
3. Connect to the same host again later using ECDSA for whatever reason (it
appears the new version prefers it)
4. A warning message that the host's key has changed is displayed

What is the expected output? What do you see instead?

I would expect that, when the connection algorithm changes, the application
notify me that it's now connecting using a different algorithm and that I
should verify the fingerprint. The current output provides no feedback
that the reason for the changed host fingerprint is because a different
algorithm is being used.

What version of the product are you using (you can see this by using Menu
-> About in the Host List)?

1.8.2 2015.03.22

What type of system are you trying to connect to?

An Ubuntu Linux 12.04 system running OpenSSHd

If you are able to connect, what is the output of "echo $TERM", "uname -a",
and any other relevant information on the host?

No other relevant information.

Please provide any additional information below.

This behavior kind of freaked me out, needless to say, especially when I
connected to the host from other connectivity (with a different client) and
got no warning message, leading me to suspect that my cellular provider was
proxying SSH connections all of a sudden. Once I connected with alternate
means, I was able to verify that the new fingerprint being presented was an
ECDSA fingerprint as opposed to the RSA fingerprint that was saved with the
profile.

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

conne...@googlecode.com

unread,
Mar 31, 2015, 3:24:39 PM3/31/15
to connectbo...@googlegroups.com

Comment #1 on issue 692 by tg.mufcn...@gmail.com: Invalid host key
verification message displays when connecting to existing host with new
algorithm
https://code.google.com/p/connectbot/issues/detail?id=692

I've just spent an hour verifying my SSH host keys against backups due to
this issue. I went into full paranoia mode. I believe this should be a high
priority issue as this will cause both false negatives (people believing a
host fingerprint alert to be fine because they have had it on other servers
too) and false positives (where ECDSA is now preferred over RSA).

The change log that I can see on Google Play did not suggest that a change
to host key preference was in the update. I can't really see anything in
the commit log which would explain this change of behaviour either. I've
probably just missed something.

Could the behaviour be changed to tell users that the host key has been
verified by RSA however a new ECDSA fingerprint can be saved for future use?

Phone: HTC One m8
Android 5.0.1 with Sense 6.0

Thanks,

Tom

conne...@googlecode.com

unread,
Mar 31, 2015, 7:22:24 PM3/31/15
to connectbo...@googlegroups.com

Comment #2 on issue 692 by dammme...@googlemail.com: Invalid host key
verification message displays when connecting to existing host with new
algorithm
https://code.google.com/p/connectbot/issues/detail?id=692

I ran into the same problem.
Some previously saved host connections don't work anymore.

sshd server auth.log (debug level 3):
Apr 1 00:56:45 sshd[14005]: debug1: expecting SSH2_MSG_NEWKEYS [preauth]
Apr 1 00:56:45 sshd[14005]: Connection closed by 192.168.1.103 [preauth]

Connections, that still work are those, where the server has no ECSDA auth.

Possible workarounds are:
* Disabling the ECDSA host key on the sshd_config and restart (if you have
permission to do this):
#HostKey /etc/ssh/ssh_host_ecdsa_key
* Downgrade the App ;)

conne...@googlecode.com

unread,
Apr 1, 2015, 2:45:46 PM4/1/15
to connectbo...@googlegroups.com

Comment #3 on issue 692 by tom.chiv...@gmail.com: Invalid host key
verification message displays when connecting to existing host with new
algorithm
https://code.google.com/p/connectbot/issues/detail?id=692

Snap. Latest connectbot against Fedora 20, saved connection moans
about "Host key changed", and lists a "Host EC fingerprint" to verify
against.
Reply all
Reply to author
Forward
0 new messages