Re: Connection closed, no reason given

From: Darren Tucker (dtucker_at_gate.dodgy.net.au)
Date: 11/05/05


Date: 05 Nov 2005 00:06:17 GMT

On 2005-11-04, jois.de.vivre@gmail.com <jois.de.vivre@gmail.com> wrote:
[...]
> I copied the entry from id_dsa.pub into the remote machine's
> .ssh/authorized_keys file and expected to be able to login without a
> problem. However, when I try and login now it simply says
>
> Connection closed by 192.168.1.108
>
> And I can't ssh into it anymore. I suspect the problem is in the
> authorized_keys file, how can I force it to not look in there without
> having to go to that machine and manually delete the entry?

You're using OpenSSH? (looks like it but you don't say)

I suspect you corrupted the key while copying it into authorized_keys.
Depending on exactly how it was corrupted, earlier versions of OpenSSH
didn't handle that well and would abort the connection. This has been
fixed for a while.

You can prevent you client from trying public-key authentication
which will probably let you log in ok. For OpenSSH, this is
"ssh -oPreferredAuthentications=password yourserver" (or possibly
keyboard-interactive instead of password). For other clients it will
probably be different.

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.


Relevant Pages

  • Re: SSH Connecting through Firewall
    ... >client to use HTTPS or FTP proxy. ... There is no such option in the OpenSSH ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: HOWTO: Speedup login process using OpenSSH 3.4 on AIX
    ... What client are you using? ... >ssh client: openssh 3.4p1 ... OpenSSH 3.8 has some client-side speedups. ... Good judgement comes with experience. ...
    (comp.security.ssh)
  • Re: Keberos GSS authentication not working
    ... > OpenSSH has been configured with the following options: ... Does your client do GSSAPI authentication? ... Good judgement comes with experience. ...
    (SSH)
  • Re: acting in dependency upon the type of an object
    ... the client has a particular collaboration in mind and just needs to know what interface to use on the element. ... Now one uses getType to instantiate and navigate the proper R2 or R3 relationship. ... switch (myEntry.getType()) // dispatch on entry flavor ... we have used subclassing specialization to capture an important aspect of the problem and the diffrent processing is associated with the relationship being navigated rather than the ntry type. ...
    (comp.object)
  • Re: Survey Design
    ... It is an Incredibly Bad Idea to design your database based on a form. ... what's the use of ease of entry if you can't get the data back out to report ... If you absolutely MUST have a data entry form that looks like the survey, ... The final result would be something like: Client X has taken the ...
    (microsoft.public.access.tablesdbdesign)