Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ssh localhost connection closed error

Status
Not open for further replies.

keak

Programmer
Sep 12, 2005
247
CA
Hi there,
I have sshd running and when I issue ssh localhost, I get:
Connection closed by 127.0.0.1

I am not restricting any IP addresses, and I have no IP tables set. I was wondering if anyone can give me some pointers as to what may be wrong......


#Port 22
#Protocol 2,1
Protocol 2
#ListenAddress 0.0.0.0
#ListenAddress ::
 
Stop the ssh daemon and run it in debug mode
eg. sshd -d -d
Check the output as a connection is made or rejected.


"If you always do what you've always done, you will always be where you've always been."
 
As much as I hate to say it, being as we *nix-ers just love our uptime, but I once dug into the exact same problem and the only solution, sadly, turned out to be a system reboot...
 
Humm... I will try the debug mode first to see what exactly is causing this problem, and if not, I guess my final resort will be the system reboot.

Thanks for the pointers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top