E in vmware acolo experimentez. Si nu vad de ce e o problema daca acelasi linux e si client si server. O sa mai incerc zilele astea, acum am altele pe cap (configurare de postfix si bla).
@kman:
Eu stiam c-am copiat cheia publica. M-am uitat acum si da e cea publica. Am scris gresit in primul post. si-n sshd.conf sint setarile alea.
Am facut paste la o noua incercare. Sint activate si autentificare prin keys si prin parola. CUm keys nu merge am dat parola gresita pana a dat mesajul cu permission denied. IN mod normal ar fi fost dezactivat login prin parola dar am facut operatiunea prin ssh si trebuia sa ma logez cumva.
[test@nutrielle ~]$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/test/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/test/.ssh/id_rsa.
Your public key has been saved in /home/test/.ssh/id_rsa.pub.
The key fingerprint is:
33:34:23:04:d4:d7:79:77:e8:fd:e4:28:17:f4:a7:f7
test@nutrielle.com[test@nutrielle ~]$ cd ~/.ssh
[test@nutrielle .ssh]$ cp id_rsa.pub authorize_keys
[test@nutrielle .ssh]$ ls -l
total 12
-rw-r--r-- 1 test test 228 Feb 27 21:04 authorize_keys
-rw------- 1 test test 963 Feb 27 21:04 id_rsa
-rw-r--r-- 1 test test 228 Feb 27 21:04 id_rsa.pub
[test@nutrielle .ssh]$ chmod 600 authorize_keys
[test@nutrielle .ssh]$ ls -l
total 12
-rw------- 1 test test 228 Feb 27 21:04 authorize_keys
-rw------- 1 test test 963 Feb 27 21:04 id_rsa
-rw-r--r-- 1 test test 228 Feb 27 21:04 id_rsa.pub
[test@nutrielle .ssh]$ ssh 127.0.0.1
The authenticity of host '127.0.0.1 (127.0.0.1)' can't be established.
RSA key fingerprint is 84:4f:72:56:64:37:11:22:c2:25:d9:78:45:1c:61:b2.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '127.0.0.1' (RSA) to the list of known hosts.
test@127.0.0.1's password:
Permission denied, please try again.
test@127.0.0.1's password:
Permission denied, please try again.
test@127.0.0.1's password:
Permission denied (publickey,password).
[test@nutrielle .ssh]$
Daca as fi introdus parola m-ar fi logat fara probleme. Dar scopul e sa fac asta via keys...