華為裝置遠端登入設定

2020-10-21 17:01:11

一、tenlen方式
1.直接設定密碼
[AR1]user-interface vty 0 4 (進入vty)
AR1-ui-vty0-4]authentication-mode password (設定連線方式)
Please configure the login password (maximum length 16):hw123(設定密碼)
[AR1-ui-vty0-4]user privilege level 15(設定級別)

2.使用者名稱方式(aaa)
[AR1]user-interface vty 0 4 (進入vty)
[AR1-ui-vty0-4]authentication-mode aaa
[AR1-ui-vty0-4]quit
[AR1]aaa
[AR1-aaa]local-user huawe privilege level 15 password cipher hw123(設定使用者名稱,級別,密碼)
[AR1-aaa]local-user huawe service-type telnet(設定登入方式預設telent)
忘記遠端登入密碼後從console口登入進去改密碼
[AR1-aaa]local-user huawe password cipher hw1234
二、SSH方式
[AR1]user-interface vty 0 4 (進入vty)
[AR1-ui-vty0-4]authentication-mode aaa
[AR1-ui-vty0-4]protocol inbound ssh (ssh2登入)
[AR1-ui-vty0-4]quit
[AR1]aaa
[AR1-aaa]local-user huawe privilege level 15 password cipher hw123(設定使用者名稱,級別,密碼)
[AR1-aaa]local-user huawe service-type ssh(改變登入方式)
[AR1-aaa]quit
[AR1]stelnet server enable (開啟SSH)
[AR1]rsa local-key-pair create (建立祕鑰對)
Confirm to replace them? (y/n)[n]:y(確認建立)
Input the bits in the modulus[default = 512]:2048(祕鑰對大小)