I often ssh into servers for work and play using dynamic dns with ssh keys that are password protected. Twice now (shame on me!) I have mistyped the dyndns.org part of the address and been greeted with several password prompts making me think id mistyped the password, before realizing the url was wrong.

I can see why someone would do this as if a site is not protected by ssh keys then the (probaly) nefarious site admin could then use the captured password to log into the fat fingered (like me) misptypers server.

But my question is: do I need to worry? (or in other words was my paranoia heart attack quickly change my ssh keys stress justified?)

  • Why would you trade keys? Your private key never leaves your computer. It was your password that was exposed. Commented Nov 12, 2015 at 23:27
  • If ive nothing to worry about then paranoia is the reason I 'traded' my keys Commented Nov 13, 2015 at 0:26

2 Answers 2


Change your password.

Anytime you enter a password into an unknown server, change it immediately.

I don't believe your keys would be at risk, as the private key itself is never transmitted, only used to sign a piece of data to verify that you do in fact have it.


You should consider your password compromised. If you use that password on your local machine then change it NOW. It is trivial for a sysadmin to instrument their sshd to log all failed password attempts and the most serious threat is that a malicious operator will use those credentials to login to your system.

I would suggest two remedial actions: 1. For password based systems use a unique password for every site you visit. A random password generator would be ideal. 2. Switch to using certificate-based logins on the hosts you regularly use. No password prompt and no risk of compromise because all that the remote machine has is your public key.

  • I think by certificate-base login you mean the same thing I meant by 'ssh keys'? Commented Nov 13, 2015 at 13:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .