[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

ssh outdoor timeout



Всем привет.

Есть Debian Sarge 3.1, на нем ветится SSH-2.0-OpenSSH_3.8.1p1. Изнутри локалки на него попасть можно без проблем.
Снаружи нет. Между инетом и Хостом стоит железяка с пробросом порта (это ок, фаервол на время отключил)
Когда коннектишься снаружи, появляется логин, потом пароль. Все это дело виснет на пароле, потом отваливается.
Процессы sshd и shell остаются висеть.

Снаружи симптомы такие

login: user0
Password:
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 0
debug1: Authentication succeeded (keyboard-interactive).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Entering interactive session.
debug2: callback start
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 0
debug2: channel 0: request shell confirm 0
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug1: channel 0: free: client-session, nchannels 1
Read from remote host 195.131.xxx.xx: Connection timed out
Connection to 195.131.xxx.xx closed.
debug1: Transferred: stdin 0, stdout 0, stderr 98 bytes in 1000.9 seconds
debug1: Bytes per second: stdin 0.0, stdout 0.0, stderr 0.1
debug1: Exit status -1

пока висит, на сервере в процессах следующее:

hostname:/etc/network# ps -elf | grep user0
5 S user0 1867 1863 0 71 0 - 2133 select 15:07 ? 00:00:00 sshd: user0@pts/1
0 S user0 1868 1867 0 66 0 - 743 read_c 15:07 pts/1 00:00:00 -bash

еще

hostname:/etc/network# tail -3 /var/log/auth.log
Feb 7 15:26:27 hostname sshd[1880]: Accepted keyboard-interactive/pam for user0 from 195.190.xxx.xxx port 53859 ssh2
Feb 7 15:26:27 hostname sshd[1886]: (pam_unix) session opened for user user0 by (uid=0)
Feb 7 15:27:26 hostname sshd[1867]: (pam_unix) session closed for user user0

hostname:/etc/network#w
user0 pts/1 nat.in.remotehost 15:07 17:56 0.02s 0.02s -bash

sshd_config дефолтный.

DNS провайдеровский.

=========================
С уважением,
 Сергей                          mailto:sevlastr@yandex.ru




Reply to: