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. Kā es sāku savu pamācību par pievienot fontus tepe uz N95, es ļoti ātri nolēma, ka, ņemot ievadīt lietotāja vārdu un paroli katru reizi, kad es apmeklējums ir lietojis pārāk garš. So I generated an RSA key pair with a blank pass phrase just to save time. Tāpēc es radīja RSA atslēgu pāra ar tukšu iziet frāze tikai ietaupīt laiku. Don't worry, of course I deleted the key pair as soon as I was finished. Don't worry, protams, es svītrots atslēgu pāri, tiklīdz es biju gatava. The last thing I need is to lose my phone and have some stranger logging into my server! Pēdējā lieta, ko man vajag ir pazaudēju savu telefonu un ir dažas svešinieks ieejot mana servera!
Note: this procedure is not specific to just the N95, nor is it only specific to Linux. Piezīme: šo procedūru nav raksturīga tikai N95, tā nav arī tikai specifiski uz Linux. I use Linux in my examples because I'm not a Windows user. Es izmantoju Linux manā piemērus, jo es neesmu Windows lietotājs. The procedure described below on how to generate RSA keys can be adapted to puttygen.exe on Windows. Turpmāk aprakstītā procedūra, kā radīt RSA atslēgām var pielāgot puttygen.exe uz Windows.
- Here is what I did on the Linux box first: Lūk, ko es izdarīju par Linux kaste vispirms:
[user@radon ~]$ ssh-keygen [User @ radons ~] $ ssh-keygen
Generating public/private rsa key pair. Radīt sabiedriskās / privātās RSA atslēgu pāris.
Enter file in which to save the key (/home/user/.ssh/id_rsa): Ievadiet failu, kurā saglabāt taustiņu (/ home / user / .ssh / id_rsa):
Created directory '/home/user/.ssh'. Created directory '/ home / user / .ssh ".
Enter passphrase (empty for no passphrase): Ievadiet paroli (tukša ne paroli):
Enter same passphrase again: Ievadiet pašu paroli vēlreiz:
Your identification has been saved in /home/user/.ssh/id_rsa. Jūsu identitāte ir saglabāta in / home / user / .ssh / id_rsa.
Your public key has been saved in /home/user/.ssh/id_rsa.pub. Jūsu publisko atslēgu ir saglabāta in / home / user / .ssh / id_rsa.pub.
The key fingerprint is: Galvenā pirkstu nospiedums ir:
79:8a:08:bd:fb:da:71:59:f4:28:e6:c3:01:12:5a:69 user@radon.example.com 79:8: 08: bd: FB: da: 71:59: F4: 28: E6: C3: 01:12:5: 69 user@radon.example.com[user@radon ~]$ cd .ssh/ [User @ radons ~] $ cd. ssh /
[user@radon .ssh]$ ls [User @ radons. 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 [User @ radons. ssh] $ cat id_rsa.pub> authorized_keys
[user@radon .ssh]$ chmod 644 authorized_keys [User @ radons. ssh] $ chmod 644 authorized_keysThe chmod command above is very important. Chmod komanda iepriekš ir ļoti svarīgi. Your authorized_keys file must only be writable by you. Jūsu authorized_keys failam jābūt tikai rakstāmās ar jums. If is is group writable sshd will refuse to use it. Ja ir ir grupa rakstāmās sshd atteiksies to izmantot.
- This step is also very important! Šis solis ir ļoti svarīgs! Next you must convert your OpenSSH private key into PuTTY's SSH-2 key format. Nākamā jums ir pārvērst savu OpenSSH privāto atslēgu tepe ir SSH-2 galvenie formātā. I initially tried using the OpenSSH private key itself, not realizing that PuTTY couldn't read it properly. Es sākotnēji mēģināja izmantojot OpenSSH privāto atslēgu sevi nav saprotot, ka tepe nevar izlasīt pareizi. It took a bit of digging to figure out why it wasn't working. Tas bija mazliet Ciršanas saprast, kāpēc tas nedarbojas. Who knew that PuTTY, OpenSSH, and ssh.com's implementations of SSH-2 keys were so different? Kurš zināja, ka tepe, OpenSSH, un ssh.com 's ieviešanā SSH-2 taustiņi ir tik atšķirīgas?
[user@radon .ssh]$ puttygen id_rsa -o id_rsa.ppk [User @ radons. ssh] $ puttygen id_rsa-o id_rsa.ppk
- 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. Next, I plugged mana N95 manā klēpjdators ar USB kabeli, un kopēt id_rsa.ppk uz temp mapi tālruņa masu atmiņā.
- 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. Tagad, uguns līdz tepe jūsu N95 un izvēlieties Options -> Edit -> General, tad pievieno tālvadības resursdatora nosaukumu vai adresi, kā arī Jūsu lietotāja vārdu.
- Next, press the Right toggle once to move to the next screen. Tālāk, nospiediet labo pārslēgšanas vienreiz, lai pārietu uz nākamo ekrānu. This is where you select your Private Key . Tas ir, ja izvēlaties savu privāto atslēgu. Follow the sequence outlined in the screenshots below to see how I chose E:\temp\id_rsa.ppk. Sekojiet secība norādīts zemāk ekrānšāviņi lai redzētu, kā es izvēlējos E: \ temp \ id_rsa.ppk.
- Press Back twice to go back to the main PuTTY screen, then press Options -> Connect and you are now connected without needing a password. Nospiediet Atpaka divas reizes, lai iet atpakaļ uz galveno tepe ekrāns, nospiediet Options -> Connect un jūs tagad ir savienoti bez nepieciešamības paroli.



































Hola… como estan… me gusto mucho este articulo… Hola ... como estan ... man bauda mucho este articulo ...
pero tengo una pregunta… puedo tener varias claves publicas y privadas en el mismo servidor… osea supongamos que tenemos un servidor y dos equipos… los llamare lx1 y lx2… puedo crear una clave para lx1 y otra diferente para lx2 ……. pero tengo una pregunta ... puedo tener Varias claves públicas y privadas en el mismo serverim ... osea supongamos que tenemos un serverim y dos equipos ... los llamare lx1 y lx2 ... puedo crear una clave para lx1 y otra diferente para lx2 ... .... debo aclarar que la clave para lx2 se creo desde lx1 y al hacer cat id_rsa2.pub> authorized_keys…temo que se sobreescriba y quede inabilitado la clave para lx1… lo que me dejaria fuera del servidor… puedes ayudarme .. Debo aclarar que la clave para lx2 se Creo desde lx1 y al hacer kaķis id_rsa2.pub> authorized_keys ... temo que se sobreescriba y quede inabilitado la clave para lx1 ... lo que me dejaria fuera del serverim ... puedes ayudarme .. te lo agradecere siempre. te lo agradecere siempre.