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>