Generating an RSA key pair for use with PuTTY on the N95生成一個RSA密鑰對使用膩子上的N95

by Ken Murray on October 15, 2008 肯穆雷 08年十月十五日

Linux操作系統Symbian的

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.正如我開始補習增加字體,膩子的N95上,我非常迅速地決定,而不必輸入一個用戶名和密碼,每次我登錄正在太長。 So I generated an RSA key pair with a blank pass phrase just to save time.所以,我產生了RSA密鑰對同一個空白的密碼短語只是為了節省時間。 Don’t worry, of course I deleted the key pair as soon as I was finished.不要擔心,我當然刪除配對的鑰匙盡快完成我。 The last thing I need is to lose my phone and have some stranger logging into my server!最後我需要的是失去我的電話和一些陌生人登錄到我的服務器!

Note: this procedure is not specific to just the N95, nor is it only specific to Linux. 注:此程序不只是具體的N95 ,它也不是只有特定的Linux操作系統。 I use Linux in my examples because I’m not a Windows user.我使用Linux在我國的例子,因為我不是一個Windows用戶。 The procedure described below on how to generate RSA keys can be adapted to puttygen.exe on Windows.該程序說明如下關於如何產生RSA密鑰能夠適應puttygen.exe在Windows上使用。

  1. Here is what I did on the Linux box first:以下是我在Linux中第一次:

    [user@radon ~]$ ssh-keygen [用戶@氡〜 ] $ 的SSH -凱基
    Generating public/private rsa key pair.產生公/私密鑰對RSA的。
    Enter file in which to save the key (/home/user/.ssh/id_rsa):輸入檔案中保存的關鍵( /家庭/用戶/ .ssh / id_rsa ) :
    Created directory ‘/home/user/.ssh’.創建目錄' /家庭/用戶/ .ssh ' 。
    Enter passphrase (empty for no passphrase):輸入密碼(空沒有密碼) :
    Enter same passphrase again:同樣的密碼輸入一遍:
    Your identification has been saved in /home/user/.ssh/id_rsa.您的身份已被保存在/ home /用戶/ .ssh / id_rsa 。
    Your public key has been saved in /home/user/.ssh/id_rsa.pub.你的公共密鑰已被保存在/ home /用戶/ .ssh / id_rsa.pub 。
    The key fingerprint is:指紋識別的關鍵是:
    79:8a:08:bd:fb:da:71:59:f4:28:e6:c3:01:12:5a:69 user@radon.example.com 79:8 1 : 08 :藍光:全:達: 71:59 : F4類: 28 :卟吩e6 :補體C3 : 1點12分05秒1 : 69 user@radon.example.com

    [user@radon ~]$ cd .ssh/ [用戶@氡〜 ] $光盤。的SSH /
    [user@radon .ssh]$ ls [用戶@氡。的SSH ] $最小二乘
    id_rsa id_rsa.pub known_hosts id_rsa id_rsa.pub known_hosts
    [user@radon .ssh]$ cat id_rsa.pub > authorized_keys [用戶@氡。的SSH ] $貓id_rsa.pub “ authorized_keys
    [user@radon .ssh]$ chmod 644 authorized_keys [用戶@氡。的SSH ] $屬性644 authorized_keys

    The chmod command above is very important.在上述命令屬性是非常重要的。 Your authorized_keys file must only be writable by you.檔authorized_keys你只能寫你。 If is is group writable sshd will refuse to use it.如果是寫的是組sshd將拒絕使用它。

  2. This step is also very important!這一步也是非常重要的! Next you must convert your OpenSSH private key into PuTTY’s SSH-2 key format.接下來,您必須將您的OpenSSH私人鑰匙進入膩子的的SSH - 2主要格式。 I initially tried using the OpenSSH private key itself, not realizing that PuTTY couldn’t read it properly.我最初嘗試使用OpenSSH私人鑰匙本身,而不是實現這一膩子無法讀取正確。 It took a bit of digging to figure out why it wasn’t working.它採取了一些挖掘,以找出它為什麼是行不通的。 Who knew that PuTTY, OpenSSH, and ssh.com’s implementations of SSH-2 keys were so different?誰知道,膩子, OpenSSH ,並ssh.com之實的SSH - 2鍵是如此不同?

    [user@radon .ssh]$ puttygen id_rsa -o id_rsa.ppk [用戶@氡。的SSH ] $ puttygen id_rsa鄰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.下一步,我插入我的N95型到我的筆記本電腦, USB電纜和複製id_rsa.ppk一個臨時文件夾在手機上的群眾記憶。
  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.現在,火災最多膩子您的N95型,並選擇選項-> “編輯- >”一般,然後添加遠程主機的名稱或地址,以及您的用戶名。

  5. Next, press the Right toggle once to move to the next screen.下一步,按下切換一次,以移動到下一個屏幕。 This is where you select your Private Key .在這裡,您可以選擇您的私人鑰匙。 Follow the sequence outlined in the screenshots below to see how I chose E:\temp\id_rsa.ppk.按照序列中概述的截圖下面看看我選擇電郵: \氣溫\ 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.新聞兩次,返回主膩子屏幕上,然後按選項 -> “連接,您現在連接,而無需輸入密碼。

Related Posts: 相關文章:
  • How to install additional fonts for PuTTY on the N95如何安裝額外的字體上的膩子的N95
  • How to install and use PuTTY on your Nokia N95如何安裝和使用膩子在您的諾基亞N95
  • 10 ways to get the most out of your Apple Remote 10個方法,最大限度地發揮你的蘋果遙控器
  • How to set up and use PortableApps on your USB thumb drive如何設置和使用PortableApps您的USB拇指驅動器
  • BlogRush - An Experiment | Update 1 BlogRush -實驗|更新1
  • Get Simple Help tutorials just like this one in your email inbox every day - for free!獲取簡單的幫助教程就這樣一個在您的電子郵件收件匣每一天-是免費的! Just enter your email address below:只要輸入您的電子郵件地址如下:

    You can always opt out of this email subscription at any time.您可以隨時退出這個郵件訂閱在任何時候。


    Bookmark and Share 書籤和共享

    { 0 comments… 0評論... add one now現在添加一個 }

    Leave a Comment發表您的評論

    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> 您可以使用這些HTML標記和屬性: href="" title="">的<a <abbr title=""> <acronym title="">的<b> <blockquote cite=""> <cite>的<code> <del datetime="">的<em> <i> <q cite=""> <strike>的<strong>