Re: ssh localhost doesn't work
On 04/10/2005 04:30 PM, Víctor Manuel wrote:
> Hello everybody,
>
> I've been using Linux for three years, but I'm new to Debian. The other
> distros I've used were Red Hat and Suse, and now I'm trying with Debian
> Sid. I'm having the following problem: when I try "*ssh localhost"* I
> get the following message: *"ssh_exchange_identification: Connection
> closed by remote host".
>
> *When doing *"ssh -v localhost" *the outpus is:
> debian1:/home/victor# ssh -v localhost
>
> *OpenSSH_3.8.1p1 Debian-8.sarge.4, OpenSSL 0.9.7e 25 Oct 2004
> debug1: Reading configuration data /etc/ssh/ssh_config
> debug1: Connecting to localhost [127.0.0.1] port 22.
> debug1: Connection established.
> debug1: identity file /user/.ssh/identity type -1
> debug1: identity file /user/.ssh/id_rsa type -1
> debug1: identity file /user/.ssh/id_dsa type -1
> ssh_exchange_identification: Connection closed by remote host*
>
> I've been searching on the Web and SSH documentation and I've tried
> turning off the firewall and adding sshd: ALL in the hosts.allow file,
> but it doesn't work.
>
> I'll appreciate any comments.
>
> Thanks.
Victor,
It should work out of the box, as mine does. Look in /var/log/auth.log
for errors.
Have you looked at, or changed, /etc/ssh/sshd_config ? You could also
crank up the debugging in sshd. See man sshd_config .
This is about the limit of my expertise. Good Luck!
Ralph
Reply to: