Operating System - Linux
1827810 Members
2649 Online
109969 Solutions
New Discussion

Re: connection closed by ssh server

 
Maaz
Valued Contributor

connection closed by ssh server

# ssh -v 10.0.0.1
debug1: Authentication that can continue: Public, keyboard-interactive
debug1: Next Authentication method: public
debug1: Trying private key: /root/.ssh/identity
debug1: Trying private key: /root/.ssh/id_rsa
debug1: Trying private key: /root/.ssh/id_dsa



Connection closed by 10.0.0.1
lost connection

#

Please suggest
Regards
Maaz
4 REPLIES 4
Steven Schweda
Honored Contributor

Re: connection closed by ssh server

> Please suggest

How about a useful problem description?

Describe your SSH client system/software.

Describe your SSH server system/software.

Look at the system logs on the server.

> # ssh -v 10.0.0.1

What happens with other client systems?

What happens with other server systems?

What happens with other services, like, say,
Telnet, rsh, and so on?
Ivan Ferreira
Honored Contributor

Re: connection closed by ssh server

In this case, I would use tcpdump to identify if at least an initial connection is done. From the output of your command, it looks like there is some kind of filtering of the packages. Do you have any host firewall or firewall in between the hosts? Do you have the same problem using another user? Is this problem particular to the 10.0.0.1 host?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Ivan Krastev
Honored Contributor

Re: connection closed by ssh server

Try to change DNS reverse checks in sshd_config:

UseDNS no

regards,
ivan
Maaz
Valued Contributor

Re: connection closed by ssh server

Thanks Steven Schweda, Ivan Ferreira and Ivan Krastev for help/suggestions

actually the problem was with wan link/connection b/w ssh client and server(10.0.0.1), and nothing wrong with either the client and server... issue disappear

Thanks
Regards
Maaz