Buna Listashi, Pe un RH-9 nu reusesc sa ma loghez cu ssh-ul prin autentificarea cu chei Va dau in detaliu ce am facut, spuneti-mi ce gresesc: (La slujba cu un RH-9 reusesc, acasa NU !!!! :-( ) 1) Din user mmihai generez cheile: ssh-keygen -t rsa, ii spun passphrase, de doua ori . 2) mv id_rsa.pub authorized-keys2 3)Pe authorized-keys2 il mut in .ssh din /home/sergiuh 4) Fac (din root, pentru economie de timp) "chmod 640 authorized-keys2" respectiv "chown sergiuh.sergiuh authorized-keys2"
5) Dau (din user mmihai) "ssh [EMAIL PROTECTED] -v" (ca sa vad ce e si cum e) Imi cere passphrase, o tastez dupa care CULMEA, imi cere SI parola lui sergiuh !!!! Daca nu i-o dau NU logheaza !!!!!!!!! Daca i-o dau logheaza Daca o tastez gresit de trei ori, imi cere parola lui sergiuh............... (La slujba reusesc acasa NUU :-(((((( ) Oameni buni: eu vreau sa ma loghez DOAR cu passphrase, si daca nu e corecta sa NU ma lase sa ma loghez mai departe, neaparat !!! Va rog lamuriti-ma doua lucruri: 1) De ce NU ma logheaza la passphrase, corect data, ( ca asta vreau) si imi cere mai departe parola de user ?? Daca e passphrase gresit oricum mi-o cere, dar NU vreau... Vreau sa ma loghez la passphrase corect (La final va dau output-ul) 2) Cum fac DACA passphrase e gresit, sa NU mearga mai departe sa ceara parola ?? Si evident, sa nu ma pot loga.... Va rog lamuriti-ma Multumesc ############################################################################### OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090701f debug1: Reading configuration data /etc/ssh/ssh_config debug1: Applying options for * debug1: Rhosts Authentication disabled, originating port will not be trusted. debug1: ssh_connect: needpriv 0 debug1: Connecting to 127.0.0.1 [127.0.0.1] port 22. debug1: Connection established. debug1: identity file /home/mmihai/.ssh/identity type -1 debug1: identity file /home/mmihai/.ssh/id_rsa type -1 debug1: identity file /home/mmihai/.ssh/id_dsa type -1 debug1: Remote protocol version 1.99, remote software version OpenSSH_3.5p1 debug1: match: OpenSSH_3.5p1 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_3.5p1 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP debug1: dh_gen_key: priv key bits set: 120/256 debug1: bits set: 1605/3191 debug1: SSH2_MSG_KEX_DH_GEX_INIT sent debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY debug1: Host '127.0.0.1' is known and matches the RSA host key. debug1: Found key in /home/mmihai/.ssh/known_hosts:1 debug1: bits set: 1610/3191 debug1: ssh_rsa_verify: signature correct debug1: kex_derive_keys debug1: newkeys: mode 1 debug1: SSH2_MSG_NEWKEYS sent debug1: waiting for SSH2_MSG_NEWKEYS debug1: newkeys: mode 0 debug1: SSH2_MSG_NEWKEYS received debug1: done: ssh_kex2. debug1: send SSH2_MSG_SERVICE_REQUEST debug1: service_accept: ssh-userauth debug1: got SSH2_MSG_SERVICE_ACCEPT debug1: authentications that can continue: publickey,password,keyboard-interactive debug1: next auth method to try is publickey debug1: try privkey: /home/mmihai/.ssh/identity debug1: try privkey: /home/mmihai/.ssh/id_rsa debug1: PEM_read_PrivateKey failed debug1: read PEM private key done: type <unknown> debug1: read PEM private key done: type RSA debug1: authentications that can continue: publickey,password,keyboard-interactive debug1: try privkey: /home/mmihai/.ssh/id_dsa debug1: next auth method to try is keyboard-interactive debug1: authentications that can continue: publickey,password,keyboard-interactive debug1: next auth method to try is password debug1: ssh-userauth2 successful: method password debug1: fd 5 setting O_NONBLOCK debug1: channel 0: new [client-session] debug1: send channel open 0 debug1: Entering interactive session. debug1: ssh_session2_setup: id 0 debug1: channel request 0: pty-req debug1: channel request 0: shell debug1: fd 3 setting TCP_NODELAY debug1: channel 0: open confirm rwindow 0 rmax 32768 [EMAIL PROTECTED] sergiuh]$ ########################################################################## ------------------------------------------------------- Xnet scaneaza automat toate mesajele impotriva virusilor folosind RAV AntiVirus. Xnet automatically scans all messages for viruses using RAV AntiVirus. Nota: RAV AntiVirus poate sa nu detecteze toti virusii noi sau toate variantele lor. Va rugam sa luati in considerare ca exista un risc de fiecare data cand deschideti fisiere atasate si ca MobiFon nu este responsabila pentru nici un prejudiciu cauzat de virusi. Disclaimer: RAV AntiVirus may not be able to detect all new viruses and variants. Please be aware that there is a risk involved whenever opening e-mail attachments to your computer and that MobiFon is not responsible for any damages caused by viruses. --- Detalii despre listele noastre de mail: http://www.lug.ro/
