46
Server / Re: OpenSSH: jiný port než 22 hází chybu
« kdy: 24. 12. 2010, 11:23:41 »
aha takze to je to ::1 - skvele dekuju !! hned skusim
Tato sekce Vám umožňuje zobrazit všechny příspěvky tohoto uživatele. Prosím uvědomte si, že můžete vidět příspěvky pouze z oblastí Vám přístupných.
XXX: /$ ssh localhost -p 1622 -vvv
(-vvv je asi nejaky styl debugu)OpenSSH_5.5p1 Debian-4ubuntu4, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [::1] port 1622.
debug1: Connection established.
debug1: identity file /home/ynox/.ssh/id_rsa type -1
debug1: identity file /home/ynox/.ssh/id_rsa-cert type -1
debug1: identity file /home/ynox/.ssh/id_dsa type -1
debug1: identity file /home/ynox/.ssh/id_dsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.5p1 Debian-4ubuntu4
debug1: match: OpenSSH_5.5p1 Debian-4ubuntu4 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.5p1 Debian-4ubuntu4
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
Read from socket failed: Connection reset by peer
XXX: /$ sudo iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:1622
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
netstat -an | grep 1622
tcp 0 0 0.0.0.0:1622 0.0.0.0:* LISTEN
tcp6 0 0 :::1622 :::* LISTEN
ssh localhost -p 1422
Read from socket failed: Connection reset by peer