LINUX.ORG.RU
ФорумAdmin

openssh


0

0

Помогите, не могу победить openssh 3.7.1p2 на Debian woody (собрал из исходников) кусок sshd_config (авторизация только по ключам): Port 22 Protocol 2 AllowUsers sa@10.1.1.98 ListenAddress 10.1.1.119 #HostKeys for protocol version 2 HostKey /usr/local/ssh/etc/ssh_host_rsa_key HostKey /usr/local/ssh/etc/ssh_host_dsa_key # Lifetime and size of ephemeral version 1 server key #KeyRegenerationInterval 1h #ServerKeyBits 768

# Logging #obsoletes QuietMode and FascistLogging SyslogFacility AUTH LogLevel DEBUG

# Authentication:

LoginGraceTime 10 PermitRootLogin without-password StrictModes yes

RSAAuthentication no PubkeyAuthentication yes AuthorizedKeysFile %h/.ssh/authorized_keys

RhostsRSAAuthentication no HostbasedAuthentication no RhostsRSAAuthentication no HostbasedAuthentication no IgnoreUserKnownHosts yes IgnoreRhosts yes PasswordAuthentication no PermitEmptyPasswords no ChallengeResponseAuthentication no

# Kerberos options #KerberosAuthentication no #KerberosOrLocalPasswd yes #KerberosTicketCleanup yes

# GSSAPI options #GSSAPIAuthentication no #GSSAPICleanupCreds yes

# Set this to 'yes' to enable PAM authentication (via challenge-response) # and session processing. Depending on your PAM configuration, this may # bypass the setting of 'PasswordAuthentication' #UsePAM no

#AllowTcpForwarding yes #GatewayPorts no #X11Forwarding no #X11DisplayOffset 10 #X11UseLocalhost yes #PrintMotd yes PrintLastLog yes #KeepAlive yes UseLogin no UsePrivilegeSeparation yes #PermitUserEnvironment no Compression yes

ClientAliveInterval 120 ClientAliveCountMax 2

UseDNS no PidFile /usr/local/ssh/sshd.pid MaxStartups 3

# no default banner path Banner /usr/local/ssh/etc/banner -------------------------------------------------------------------- соединяюсь со станции w2k (Putty 0.54,с ключами все в порядке), открывается окно терминала, ввожу имя пользователя: sa, говорит введите passphrase, ввожу и на этом все заканчивается. На сервере в логе: Mar 4 15:21:17 gate sshd[393]: Connection from 10.1.1.98 port 1832 Mar 4 15:21:18 gate sshd[393]: debug1: Client protocol version 2.0; client software version PuTTY-Release-0.54 Mar 4 15:21:18 gate sshd[393]: debug1: no match: PuTTY-Release-0.54 Mar 4 15:21:18 gate sshd[393]: debug1: Enabling compatibility mode for protocol 2.0 Mar 4 15:21:18 gate sshd[393]: debug1: Local version string SSH-2.0-OpenSSH_3.7.1p2 Mar 4 15:21:23 gate sshd[393]: debug1: temporarily_use_uid: 1000/1000 (e=0/0) Mar 4 15:21:23 gate sshd[393]: debug1: trying public key file /home/sa/.ssh/authorized_keys Mar 4 15:21:23 gate sshd[393]: debug1: matching key found: file /home/sa/.ssh/authorized_keys, line 1 Mar 4 15:21:23 gate sshd[393]: Found matching RSA key: a3:a6:84:23:56:11:e0:d2:f6:be:ae:29:27:94:ab:e4 Mar 4 15:21:23 gate sshd[393]: debug1: restore_uid: 0/0 Mar 4 15:21:27 gate sshd[393]: fatal: Timeout before authentication for 10.1.1.98

Как лечить? Спасибо.

anonymous

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.