H3C SSH

拓撲見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.

[email protected]'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.               

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


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章