H3C SSH

拓扑见QQ收藏:ssh

[R1]public-key local create rsa  产生公钥ide

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

If the key modulus is greater than 512, it will take a few minutes.spa

Press CTRL+C to abort.server

Input the modulus length [default = 1024]:路由

Generating Keys...it

.io

Create the key pair successfully.class

[R1]ssh server enable   开启SSH登录

[R1]user-interface vty 0 4  配置VTY

[R1-line-vty0-4]authentication-mode scheme

[R1-line-vty0-4]protocol inbound ssh

[R1-line-vty0-4]quit

[R1]local-user R2  建立用户认证类型和密码(R2为远端须要远程访问本机的路由器名称)

[R1-luser-manage-R2]password simple 123

[R1-luser-manage-R2]service-type ssh

[R1-luser-manage-R2]authorization-attribute user-role network-admin 指定权限为最高

[R1-luser-manage-R2]quit

[R1]ssh user R2 service-type stelnet authentication-type password

R2远程登陆:

<R2>ssh2 1.1.1.1

Username: R2

Press CTRL+C to abort.

Connecting to 1.1.1.1 port 22.

R2@1.1.1.1's password:123

Enter a character ~ and a dot to abort.


******************************************************************************

* Copyright (c) 2004-2014 Hangzhou H3C Tech. Co., Ltd. All rights reserved.  *

* Without the owner's prior written consent,                                 *

* no decompiling or reverse-engineering shall be allowed.               

******************************************************************************

相关文章
相关标签/搜索