Senha segura menos configuração ssh entre HP-UX e Linux Suse

1

Já verifiquei a permissão (700 para .ssh e 600 para ./ssh/*) revise a configuração do arquivo sshd_config, mas o servidor continua pedindo uma senha, esse é o log:

nomgmpr@psoftn $ ssh -vvv [email protected]
OpenSSH_5.9p1+sftpfilecontrol-v1.3-hpn13v12, OpenSSL 0.9.8q 2 Dec 2010
HP-UX Secure Shell-A.05.90.003, HP-UX Secure Shell version
debug1: Reading configuration data /opt/ssh/etc/ssh_config
debug3: RNG is ready, skipping seeding
debug2: ssh_connect: needpriv 0
debug1: Connecting to 130.172.152.194 [130.172.152.194] port 22.
debug1: Connection established.
debug1: identity file /psdb/.ssh/identity type -1
debug1: identity file /psdb/.ssh/identity-cert type -1
debug3: Incorrect RSA1 identifier
debug3: Could not load "/psdb/.ssh/id_rsa" as a RSA1 public key
debug1: identity file /psdb/.ssh/id_rsa type 1
debug1: identity file /psdb/.ssh/id_rsa-cert type -1
debug1: identity file /psdb/.ssh/id_dsa type -1
debug1: identity file /psdb/.ssh/id_dsa-cert type -1
debug1: identity file /psdb/.ssh/id_ecdsa type -1
debug1: identity file /psdb/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.1
debug1: match: OpenSSH_5.1 pat OpenSSH*
debug1: Remote is NON-HPN aware
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1+sftpfilecontrol-v1.3-hpn13v12
debug2: fd 4 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "130.172.152.194" from         file "/psdb/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /psdb/.ssh/known_hosts:5
debug3: load_hostkeys: loaded 1 keys
debug3: order_hostkeyalgs: prefer hostkeyalgs: [email protected],ssh-rsa-cert-    [email protected],ssh-rsa
debug3: RNG is ready, skipping seeding
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: AUTH STATE IS 0
debug2: kex_parse_kexinit: ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: [email protected],[email protected],ssh-rsa,[email protected],[email protected],[email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-dss
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-    cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-sha2-256,hmac-sha2-256-96,hmac-sha2-512,hmac-sha2-512-96,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,[email protected],zlib
debug2: kex_parse_kexinit: none,[email protected],zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour128,arcfour256,arcfour,aes192-cbc,aes256-cbc,[email protected],aes128-ctr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,[email protected],hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit: none,[email protected]
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: REQUESTED ENC.NAME is 'aes128-ctr'
debug1: kex: server->client aes128-ctr hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: REQUESTED ENC.NAME is 'aes128-ctr'
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 122/256
debug2: bits set: 504/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA 2f:6b:0b:9c:27:e3:64:26:d7:7c:dd:87:de:db:de:27
debug3: load_hostkeys: loading entries for host "130.172.152.194" from file "/psdb/.ssh/known_hosts"
debug3: load_hostkeys: found key type RSA in file /psdb/.ssh/known_hosts:5
debug3: load_hostkeys: loaded 1 keys
debug1: Host '130.172.152.194' is known and matches the RSA host key.
debug1: Found key in /psdb/.ssh/known_hosts:5
debug2: bits set: 525/1024
debug1: ssh_rsa_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /psdb/.ssh/identity (0)
debug2: key: /psdb/.ssh/id_rsa (6000000000059270)
debug2: key: /psdb/.ssh/id_dsa (0)
debug2: key: /psdb/.ssh/id_ecdsa (0)
debug1: Authentications that can continue: publickey,keyboard-interactive
debug3: start over, passed a different list publickey,keyboard-interactive
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Trying private key: /psdb/.ssh/identity
debug3: no such identity: /psdb/.ssh/identity
debug1: Offering RSA public key: /psdb/.ssh/id_rsa
debug3: send_pubkey_test
debug2: we sent a publickey packet, wait for reply
debug1: Authentications that can continue: publickey,keyboard-interactive
debug1: Trying private key: /psdb/.ssh/id_dsa
debug3: no such identity: /psdb/.ssh/id_dsa
debug1: Trying private key: /psdb/.ssh/id_ecdsa
debug3: no such identity: /psdb/.ssh/id_ecdsa
debug2: we did not send a packet, disable method
debug3: authmethod_lookup keyboard-interactive
debug3: remaining preferred: password
debug3: authmethod_is_enabled keyboard-interactive
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 1
Password:

Você pode me ajudar com algumas dicas?

    
por user169875 17.04.2013 / 02:30

1 resposta

1

A ajuda mais importante pode vir do lado do servidor se você tiver acesso ao servidor. No lado do servidor, pare o sshd. Se o lado do servidor for HP-UX, /sbin/init.d/secsh stop fará isso por você. Então você precisa iniciar o sshd no modo de depuração usando o comando /usr/sbin/sshd -ddd . Neste ponto, certifique-se de que ninguém mais esteja vindo para esta máquina via ssh, porque o sshd no modo de depuração só permitirá uma única conexão de entrada.

Então você vai para sua máquina linux e emite o comando ssh -vvv hpux_server . Nesse ponto, compare as saídas de depuração lado a lado. Tenho certeza de que, em pouco tempo, você verá de onde o problema está vindo. Minha aposta é na incompatibilidade de chaves ssh pública e privada, devido à formatação de arquivos, mas posso estar errado, é claro.

Se você não conseguir, poste a saída de depuração do cliente e do servidor, para que todos vejam.

    
por 17.04.2013 / 03:54

Tags