I have tried following command on my local system (Ubuntu 14.04 LTS):
$ ssh localhost
The authenticity of host 'localhost (127.0.0.1)' 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?
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...)Terminated
comes in prompt and end the connection.kill
ed your ssh.strace ssh localhost
might be helpful, but is lower level thanssh -vvv
, so tryssh -vvv
first.ssh -vvv
three level debug option, but same issue. Terminated still coming in output and closing the connection.