I have tried following command on my local system (Ubuntu 14.04 LTS):

$ ssh localhost
The authenticity of host 'localhost (' can't be established.
ECDSA key fingerprint is 11:22:33:44:55:66:77:88:99:00:11:22:33:44:55.
Are you sure you want to continue connecting (yes/no)? Terminated

As we can see Terminated word at end of command output. It comes automatically once I enter the command on terminal.

I tried ssh to remote machine also but same Terminated word is command at the end of command output and Fail to connect to machine.

What could be the problem?

  • Are you sure you didn't hit the Enter key twice? This prompt requires you to type yes, there is no default value assumed when you type nothing (I once thought so myself, and didn't understand why I couldn't reach any host through SSH...) Commented Apr 21, 2015 at 15:34
  • Before typing (yes/no) option suddenly Terminated comes in prompt and end the connection.
    – snoop
    Commented Apr 21, 2015 at 15:36
  • Is there anything in your log files? Also you can try ssh -vvv localhost.
    – taliezin
    Commented Apr 21, 2015 at 15:37
  • Weird… if memory serves, "Terminated" is what the shell would say if somebody had killed your ssh. strace ssh localhost might be helpful, but is lower level than ssh -vvv, so try ssh -vvv first. Commented Apr 21, 2015 at 15:46
  • Tried ssh -vvv three level debug option, but same issue. Terminated still coming in output and closing the connection.
    – snoop
    Commented Apr 21, 2015 at 16:45


You must log in to answer this question.

Browse other questions tagged .