Salve.
Dunque ho letto da qualche parte che è possibile saltare l'immisione della password
per una sessione SSH, tramite l'utilizzo di chiavi asimmetriche tra cui RSA.
Ho un server debian lenny stable con il seguente file di configurazione /etc/ssh/sshd_config:
riporto solo le parti "salienti":
codice:
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
UsePrivilegeSeparation yes
RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile %h/.ssh/authorized_keys
IgnoreRhosts yes
RhostsRSAAuthentication no
HostbasedAuthentication no
IgnoreUserKnownHosts yes
PermitEmptyPasswords no
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
A questo punto? Un client che uso per le sessioni usa Ubuntu e l'altro Windows XP.
Per quanto rigurada Ubuntu sarebbe corretto fare:
codice:
client@ubuntu:~$: ssh-keygen -t rsa -b 1024
client@ubuntu:~$: cat pubkey_user.pub >> ~/.ssh/authorized_keys
oppure sto sbagliando e lo devo fare sul server? Illuminatemi, che non ci sto più dentro.
Grazie e scusate il farfugliamento.