Chinaunix首页 | 论坛 | 博客
  • 博客访问: 50437
  • 博文数量: 24
  • 博客积分: 2010
  • 博客等级: 大尉
  • 技术积分: 220
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-23 17:12
文章分类

全部博文(24)

文章存档

2010年(7)

2009年(11)

2008年(6)

我的朋友

分类: LINUX

2008-04-23 17:26:44

   1. 在机器Client上root用户执行ssh-keygen命令,生成建立安全信任关系的证书。
        [root@Client root]# ssh-keygen -b 1024 -t rsa
        Generating public/private rsa key pair.
        Enter file in which to save the key (/root/.ssh/id_rsa):
        Enter passphrase (empty for no passphrase):            <-- 直接输入回车
        Enter same passphrase again:                           <-- 直接输入回车
        Your identification has been saved in /root/.ssh/id_rsa.
        Your public key has been saved in /root/.ssh/id_rsa.pub.
        The key fingerprint is:
        49:9c:8a:8f:bc:19:5e:8c:c0:10:d3:15:60:a3:32:1c root@Client
        [root@Client root]#
    注意:在程序提示输入passphrase时直接输入回车,表示无证书密码。
    上述命令将生成私钥证书id_rsa和公钥证书id_rsa.pub,存放在用户家目录的.ssh子目录中。
 
   2. 将公钥证书id_rsa.pub复制到机器Server的root家目录的.ssh子目录中,同时将文件名更换为authorized_keys。
        [root@Client root]# scp -p .ssh/id_rsa.pub
阅读(597) | 评论(0) | 转发(0) |
0

上一篇:没有了

下一篇:以太网设计FAQ:以太网MAC和PHY

给主人留下些什么吧!~~