Linux How To: How To SSH Without Password Authentication Come Linux: come ssh senza password di autenticazione
Often you need to remotely run utilities on other machines through unattended batch process or cron job. Spesso è necessario eseguire servizi di pubblica utilità in remoto su altre macchine attraverso incustoditi processo batch o cronologico. ssh allows you to execute code on remote machine. ssh permette di eseguire codice sulla macchina remota. However in normal usage it prompts you for password which makes it hard to use in unattended processes. Tuttavia in condizioni normali di utilizzo che viene visualizzata la richiesta di password che rende difficile l'uso in modalità automatica dei processi. Here is a simple way to eliminate the need for specifying password every time when connecting through ssh. Qui è un modo semplice per eliminare la necessità di specificare la password ogni volta quando ci si collega tramite ssh.
Let’s assume your want to connect to remote machine named remote as user named user . Ipotizziamo il tuo desidera collegare a macchina remota il nome utente remoto come nome utente.
You need to first, and only once, generate a private-public keypair using ssh-keygen as follows: È necessario in primo luogo, e solo una volta, generare un pubblico-privato coppia di chiavi utilizzando ssh-keygen come segue:
ssh-keygen -t dsa ssh-keygen-t dsa
This will create a private and public keypair which is stored in ~/.ssh directory. Questo creerà una pubblici e privati coppia di chiavi che è memorizzato in ~ /. Ssh directory.
Next run the following command once for every machine you want to remotely login without specifying password: Avanti eseguire il seguente comando una sola volta per ogni macchina che si desidera di accesso remoto senza specificare una password:
scp ~/.ssh/id_dsa.pub user @ remote :~ user /.ssh/authorized_keys scp ~ / .ssh / id_dsa.pub @ utente remoto: ~ utente / .ssh / authorized_keys
Now you can login to the machine using ssh without requiring to specify any password. Ora potete accedere al computer utilizzando ssh senza bisogno di specificare qualsiasi password. Your public key, which you copied to the remote machine, is checked (not directly) against your private key to verify your authenticity. La vostra chiave pubblica, che è stato copiato alla macchina remota, è selezionata (non direttamente) contro la propria chiave privata per verificare il tuo autenticità.
Filed under Elencato sotto Enterprise Software Enterprise Software , Fedora Core 6 Fedora Core 6 , Headline News Headline News , How To Come , Linux , Linux Migration Linux , Open Source Software Software open source | |
| |
RSS 2.0 RSS 2,0 | |
Trackback this Article | questo articolo |
Email this Article Invia questo articolo
You may also like to read Si può anche leggere come |




May 20th, 2007 at 4:11 am 20 maggio 2007 alle 4:11 am
Thanks for the password info. Grazie per le info password. Great Post. Great post.