运维开发网

H3C SSH

运维开发网 https://www.qedev.com 2020-02-01 17:37 出处:网络 作者:li__zhenggang
拓扑见QQ收藏:[R1]public-key local create rsa  产生公钥The range of public key modulus is (512 ~ 2048).If the key modulus is greater than 512, it will take a few minutes.Press CTRL+C to abort.Input the mod

拓扑见QQ收藏:

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

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

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

Press CTRL+C to abort.

Input the modulus length [default = 1024]:

Generating Keys...

.

Create the key pair successfully.

[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.               

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

0

精彩评论

暂无评论...
验证码 换一张
取 消