ssh localhost exits with "debug1: Exit status -1 "

view story

http://serverfault.com – I am trying to setup ssh and ssh to localhost, but I am getting the following error. Any suggestions will be appreciated: $ ssh -v localhost > cat log.txt OpenSSH_6.0p1, OpenSSL 1.0.1c 10 May 2012 debug1: Reading configuration data /etc/ssh_config debug1: Connecting to localhost [::1] port 22. debug1: Connection established. (HowTos)