Generating an RSA key pair for use with PuTTY on the N95 Generare una coppia di chiavi RSA per l'uso con PuTTY sul N95

by Ken Murray on October 15, 2008 da Ken Murray il giorno 15 Ottobre, 2008

LinuxSymbian

As I started my tutorial on adding fonts to PuTTY on the N95, I very quickly decided that having to enter a user name and password every time I logged in was taking too long. Come ho iniziato il mio tutorial su come aggiungere i font di PuTTY sulla N95, ho deciso molto rapidamente che dover inserire un nome utente e la password ogni volta che ho effettuato l'accesso è stato tenuto troppo a lungo. So I generated an RSA key pair with a blank pass phrase just to save time. Così ho generato un coppia di chiavi RSA con una passphrase vuota solo per risparmiare tempo. Don’t worry, of course I deleted the key pair as soon as I was finished. Non ti preoccupare, naturalmente ho eliminato la coppia di chiavi, non appena mi è stato terminato. The last thing I need is to lose my phone and have some stranger logging into my server! L'ultima cosa ho bisogno è quello di perdere il mio telefono cellulare e hanno qualche straniero accedendo al mio server!

Note: this procedure is not specific to just the N95, nor is it only specific to Linux. Nota: questa procedura non è specifico solo per l'N95, né è solo specifico per Linux. I use Linux in my examples because I’m not a Windows user. Io uso Linux nella mia esempi perché io non sono un utente Windows. The procedure described below on how to generate RSA keys can be adapted to puttygen.exe on Windows. La procedura descritta di seguito come fare per generare chiavi RSA può essere adattato alle puttygen.exe su Windows.

  1. Here is what I did on the Linux box first: Ecco quello che ho fatto sulla macchina Linux prima:

    [user@radon ~]$ ssh-keygen [utente @ radon ~] $ ssh-keygen
    Generating public/private rsa key pair. Generazione di pubblico / privato coppia di chiavi RSA.
    Enter file in which to save the key (/home/user/.ssh/id_rsa): Inserisci file in cui salvare la chiave (/ home / user / .ssh / id_rsa):
    Created directory ‘/home/user/.ssh’. Creato directory '/ home / user / .ssh'.
    Enter passphrase (empty for no passphrase): Inserisci la passphrase (vuoto per nessuna passphrase):
    Enter same passphrase again: Inserisci nuovamente stessa passphrase:
    Your identification has been saved in /home/user/.ssh/id_rsa. La tua identificazione è stata salvata in / home / user / .ssh / id_rsa.
    Your public key has been saved in /home/user/.ssh/id_rsa.pub. La vostra chiave pubblica è stata salvata in / home / user / .ssh / id_rsa.pub.
    The key fingerprint is: La chiave di impronte digitali è la seguente:
    79:8a:08:bd:fb:da:71:59:f4:28:e6:c3:01:12:5a:69 user@radon.example.com 79:8 a: 08: bd: fb: da: 71:59: F4: 28: E6: C3: 01:12:5 a: 69 user@radon.example.com

    [user@radon ~]$ cd .ssh/ [utente @ radon ~] $ cd. ssh /
    [user@radon .ssh]$ ls [utente @ radon. ssh] $ ls
    id_rsa id_rsa.pub known_hosts id_rsa id_rsa.pub known_hosts
    [user@radon .ssh]$ cat id_rsa.pub > authorized_keys [utente @ radon. ssh] $ cat id_rsa.pub> authorized_keys
    [user@radon .ssh]$ chmod 644 authorized_keys [utente @ radon. ssh] $ chmod 644 authorized_keys

    The chmod command above is very important. Il comando chmod sopra è molto importante. Your authorized_keys file must only be writable by you. Il tuo authorized_keys file deve essere scrivibile solo da voi. If is is group writable sshd will refuse to use it. Se si è scrivibile sshd gruppo si rifiuterà di usarlo.

  2. This step is also very important! Questo passaggio è molto importante! Next you must convert your OpenSSH private key into PuTTY’s SSH-2 key format. Poi si deve convertire la propria chiave privata OpenSSH in PuTTY di SSH-2 formato chiave. I initially tried using the OpenSSH private key itself, not realizing that PuTTY couldn’t read it properly. Ho provato inizialmente utilizzando la chiave privata OpenSSH per sé, non rendersi conto che PuTTY potrebbe non leggere correttamente. It took a bit of digging to figure out why it wasn’t working. Ha preso un po 'di scavare per capire il motivo per cui non era a lavorare. Who knew that PuTTY, OpenSSH, and ssh.com’s implementations of SSH-2 keys were so different? Chi sapeva che PuTTY, OpenSSH, e ssh.com 's implementazioni di SSH-2 chiavi erano così diversi?

    [user@radon .ssh]$ puttygen id_rsa -o id_rsa.ppk [utente @ radon. ssh] $ puttygen id_rsa-o id_rsa.ppk

  3. Next, I plugged my N95 into my laptop with a USB cable and copied id_rsa.ppk to a temp folder on the phone’s mass memory. Poi, ho collegato il mio N95 nel mio computer portatile con un cavo USB e copiare id_rsa.ppk a una cartella Temp sul telefono della memoria di massa.
  4. Now, fire up PuTTY on your N95 and choose Options -> Edit -> General , then add the remote host name or address, as well as your user name. Ora, fuoco fino PuTTY sul tuo N95 e scegliere Opzioni -> Modifica -> Generale, quindi aggiungere il nome host remoto o indirizzo, così come il tuo nome utente.

  5. Next, press the Right toggle once to move to the next screen. Quindi, premere il tasto destro passare una volta per passare alla schermata successiva. This is where you select your Private Key . Questo è dove si seleziona la propria chiave privata. Follow the sequence outlined in the screenshots below to see how I chose E:\temp\id_rsa.ppk. Seguire la sequenza delineato dalle videate qui sotto per vedere come ho scelto E: \ temp \ id_rsa.ppk.


  6. Press Back twice to go back to the main PuTTY screen, then press Options -> Connect and you are now connected without needing a password. Premere Indietro due volte per tornare alla schermata principale PuTTY, quindi premere Opzioni -> Connessione e si sono ora collegati senza bisogno di una password.

Related Posts: Related Interventi:
  • How to install additional fonts for PuTTY on the N95 Come installare font aggiuntivi per PuTTY sul N95
  • How to install and use PuTTY on your Nokia N95 Come installare e utilizzare PuTTY sul Nokia N95
  • 10 ways to get the most out of your Apple Remote 10 modi per ottenere il massimo dal vostro telecomando Apple Remote
  • How to set up and use PortableApps on your USB thumb drive Come creare e utilizzare PortableApps sul vostro drive USB pollice
  • BlogRush - An Experiment | Update 1 BlogRush - Un esperimento | Update 1
  • Get Simple Help tutorials just like this one in your email inbox every day - for free! Ottieni Aiuto tutorial semplice come questo nella tua casella di posta tutti i giorni - gratuitamente! Just enter your email address below: Basta inserire il tuo indirizzo email qui sotto:

    You can always opt out of this email subscription at any time. È possibile scegliere di questa e-mail di iscrizione in qualsiasi momento.


    Bookmark and Share Favoriti e Condividi

    { 0 comments… (0 commenti ... add one now aggiungere uno ora } )

    Leave a Comment Lascia un tuo commento

    You can use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> È possibile utilizzare questi tag HTML e gli attributi: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>