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.               

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

相關文章
相關標籤/搜索