• 全部
  • 经验案例
  • 典型配置
  • 技术公告
  • FAQ
案例类型
搜索
取消
产品线
关键字
发布者
发布时间

SR6600 系列路由器SSH2.0 server Public-key认证方式的配置方法

2011-07-07发表
  • 0关注
  • 0收藏,1214浏览
粉丝: 关注:

一、  组网需求:

PC 作为SSH2.0的client 登录 SR6608,SR6608 采用Public-key的认证方式,用户登录时不需手工输入用户名及密码就可以直接登录成功

设备版本:R2507P01

 

二、  组网图:

      http://zhiliao.h3c.com/repository/38007.jpg

 

 

三、  配置步骤:

 

 1.在PC上启用SSH 密钥生成器(案例中使用 puttygen.exe)生成主机认证所需要的公钥和私钥

http://zhiliao.h3c.com/repository/38009.jpg

 2.选择生成SSH-2 类型的密钥点击Generate 

  http://zhiliao.h3c.com/repository/38006.jpg

  3.鼠标在进度条下面的空白区域中滑动以产生随即密钥 

   http://zhiliao.h3c.com/repository/38012.jpg

  4.密钥生成成功后 点击Save public key 按钮 ,将公钥保存在.pub结尾的文件

   http://zhiliao.h3c.com/repository/38005.jpg  

  5.点击 save private key 按钮 将私钥(.pkk结尾)保存在PC上

  http://zhiliao.h3c.com/repository/38013.jpg

  6        将publickey.pub 文件上传到SR6608的cf卡中备用

http://zhiliao.h3c.com/repository/38008.jpg

 

7 配置SR6608路由器

SR6608配置

[H3C]public-key local create rsa

The range of public key size is (512 ~ 2048).     

NOTES: If the key modulus is greater than 512,     

It will take a few minutes.    

Press CTRL+C to abort.

Input the bits of the modulus[default = 1024]:

Generating Keys...

+++++++

++++++++++++

++++++++++

+++

 

[H3C]public-key local create dsa

The range of public key size is (512 ~ 2048).     

NOTES: If the key modulus is greater than 512,     

It will take a few minutes.    

Press CTRL+C to abort.

Input the bits of the modulus[default = 1024]:

Generating Keys...

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.+++++++++++++++.++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++.+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*+++++++++++++

 

[H3C]ssh server enable

Info: Enable SSH server.

[H3C]public-key peer PC import sshkey cfa0:/publickey.pub   //将PC上产生的公钥导入

[H3C]ssh user PC service-type stelnet authentication-type publickey assign publickey PC

[H3C]user-interface vty 0 4

[H3C-ui-vty0-4]authentication-mode scheme                 //配置登陆模式为SSH

[H3C-ui-vty0-4]protocol inbound ssh

[H3C-ui-vty0-4]user privilege level 3

8.使用SSH2.0的终端登录SR6608(案例中使用Putty) 在session 中键入设备地址和端口号

http://zhiliao.h3c.com/repository/38014.jpg

9.在SSH下Auth框中将之前生成的.pkk结尾的私钥选择进来,然后点击open

 

  http://zhiliao.h3c.com/repository/38010.jpg

输入login名称 PC(在66上配置的SSH user 名称)即可登录

http://zhiliao.h3c.com/repository/38011.jpg

 

四、  配置关键点:

1.    PC上要产生密钥对

2.    注意确保SR6608上导入PC产生的公钥是正确的

 

 


0 个评论

该案例暂时没有网友评论

编辑评论

举报

×

侵犯我的权益 >
对根叔知了社区有害的内容 >
辱骂、歧视、挑衅等(不友善)

侵犯我的权益

×

泄露了我的隐私 >
侵犯了我企业的权益 >
抄袭了我的内容 >
诽谤我 >
辱骂、歧视、挑衅等(不友善)
骚扰我

泄露了我的隐私

×

您好,当您发现根叔知了上有泄漏您隐私的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您认为哪些内容泄露了您的隐私?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)

侵犯了我企业的权益

×

您好,当您发现根叔知了上有关于您企业的造谣与诽谤、商业侵权等内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到 zhiliao@h3c.com 邮箱,我们会在审核后尽快给您答复。
  • 1. 您举报的内容是什么?(请在邮件中列出您举报的内容和链接地址)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
  • 3. 是哪家企业?(营业执照,单位登记证明等证件)
  • 4. 您与该企业的关系是?(您是企业法人或被授权人,需提供企业委托授权书)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

抄袭了我的内容

×

原文链接或出处

诽谤我

×

您好,当您发现根叔知了上有诽谤您的内容时,您可以向根叔知了进行举报。 请您把以下内容通过邮件发送到zhiliao@h3c.com 邮箱,我们会尽快处理。
  • 1. 您举报的内容以及侵犯了您什么权益?(请在邮件中列出您举报的内容、链接地址,并给出简短的说明)
  • 2. 您是谁?(身份证明材料,可以是身份证或护照等证件)
我们认为知名企业应该坦然接受公众讨论,对于答案中不准确的部分,我们欢迎您以正式或非正式身份在根叔知了上进行澄清。

对根叔知了社区有害的内容

×

垃圾广告信息
色情、暴力、血腥等违反法律法规的内容
政治敏感
不规范转载 >
辱骂、歧视、挑衅等(不友善)
骚扰我
诱导投票

不规范转载

×

举报说明

提出建议

    +
标杆的神器激活
鼠年的运维 skr skr

亲~登录后才可以操作哦!

确定

你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作