You are not logged in.

#1 2011-10-15 17:55:44

Agamemnon
Member
From: France
Registered: 2011-05-05
Posts: 42

[Solved] ssh: connexion closed by remote problem

Hi!
I have a problem with ssh connexion with a pc and a laptop.
I can access to my pc with my laptop with ssh, but can't reach my laptop with my pc...

The command line with verbose option shows:

[xxx@Klug ~]$ ssh -v xxx@192.168.0.11
OpenSSH_5.9p1, OpenSSL 1.0.0e 6 Sep 2011
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: auto-mux: Trying existing master
debug1: Control socket "/home/xxx/.ssh/socket-xxx@192.168.0.11:22" does not exist
debug1: Connecting to 192.168.0.11 [192.168.0.11] port 22.
debug1: Connection established.
debug1: identity file /home/xxx/.ssh/id_rsa type -1
debug1: identity file /home/xxx/.ssh/id_rsa-cert type -1
debug1: identity file /home/xxx/.ssh/id_dsa type -1
debug1: identity file /home/xxx/.ssh/id_dsa-cert type -1
debug1: identity file /home/xxx/.ssh/id_ecdsa type -1
debug1: identity file /home/xxx/.ssh/id_ecdsa-cert type -1
ssh_exchange_identification: Connection closed by remote host

The laptop haven't iptables or anything else like this. I don't know why the connexion is refused...
If someone have any idea?

Last edited by Agamemnon (2011-10-16 11:52:26)


Pc: Intel core i7, 8Gb RAM, Archlinux 64bits, Gnome 3
Laptop 1: Intel Core2Duo, 4Gb RAM, Archlinux 64bits, Gnome 3
Laptop 2: Intel P4 HT, 512Mb RAM, Archlinux 32 bits, Gnome 3 too

Offline

#2 2011-10-15 18:16:11

sensei
Member
Registered: 2011-10-14
Posts: 35

Re: [Solved] ssh: connexion closed by remote problem

After a quick google search, this thread came up. There seems to be a couple of solutions in there, do any of them work?

Offline

#3 2011-10-15 18:24:06

Agamemnon
Member
From: France
Registered: 2011-05-05
Posts: 42

Re: [Solved] ssh: connexion closed by remote problem

I know this thread but no solution work. I haven't host.allow or deny files now that the package is no more in base, and my /var/run is owned by root, and /var/empty exists...


Pc: Intel core i7, 8Gb RAM, Archlinux 64bits, Gnome 3
Laptop 1: Intel Core2Duo, 4Gb RAM, Archlinux 64bits, Gnome 3
Laptop 2: Intel P4 HT, 512Mb RAM, Archlinux 32 bits, Gnome 3 too

Offline

#4 2011-10-15 18:54:55

sensei
Member
Registered: 2011-10-14
Posts: 35

Re: [Solved] ssh: connexion closed by remote problem

What OS do you have on your laptop and desktop? Arch on both?
Have you checked your configuration on both your laptop and desktop?

Offline

#5 2011-10-16 07:53:28

Agamemnon
Member
From: France
Registered: 2011-05-05
Posts: 42

Re: [Solved] ssh: connexion closed by remote problem

Both computers have a fresh install of archlinux with the same config: systemd and gnome 3.2. The only difference: the laptop uses laptop-mode.


Pc: Intel core i7, 8Gb RAM, Archlinux 64bits, Gnome 3
Laptop 1: Intel Core2Duo, 4Gb RAM, Archlinux 64bits, Gnome 3
Laptop 2: Intel P4 HT, 512Mb RAM, Archlinux 32 bits, Gnome 3 too

Offline

#6 2011-10-16 09:57:25

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [Solved] ssh: connexion closed by remote problem

Make sure that you have the correct permissions set on both ~/.ssh and the files in that folder - ssh is very particular about that...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2011-10-16 11:51:30

Agamemnon
Member
From: France
Registered: 2011-05-05
Posts: 42

Re: [Solved] ssh: connexion closed by remote problem

I have read again and again the configuration files in etc/ssh and something was wrong in some tweak I've made to speed up the connexion... I've corrected that and it works now!


Pc: Intel core i7, 8Gb RAM, Archlinux 64bits, Gnome 3
Laptop 1: Intel Core2Duo, 4Gb RAM, Archlinux 64bits, Gnome 3
Laptop 2: Intel P4 HT, 512Mb RAM, Archlinux 32 bits, Gnome 3 too

Offline

Board footer

Powered by FluxBB