華為遠程登入配置?Consoleuser-interface console 0,下面我們就來聊聊關于華為遠程登入配置?接下來我們就一起去了解一下吧!
Console
user-interface console 0
authentication-mode aaa
aaa
local-user admin123 password irreversible-cipher abcd@123
local-user adin123 privilege level 15
local-user adin123 service-type terminal
Telnet
本地認證方式
telnet server enable
user-interface vty 0 4
authentication-mode password
set authentication-mode password cipher Huawei
user privilege level 15
AAA認證方式
telnet server enable
user-interface vty 0 4
authentication-mode aaa
aaa
local-user wakin password Huawei
local-user wakin service-type telnet
local-user wakin privilege level 15
SSH(遠程登入在VTY視圖下配置ACL就可以設置對應的策略)
stelnet server enable --- 全局視圖下啟動SSH,stelnet就是SSH
ssh user admin --- 創建ssh用戶
ssh user admin service-type stelnet --- 配置SSH用戶的服務方式
password 認證方式:
user-interface vty 0 4 --- 進入虛拟終端
authentication-mode aaa --- 認證模式AAA
protocol inbound ssh --- 配置允許登錄接入用戶類型的協議
aaa --- 進入AAA
local-user admin password cipher admin privilege level 3 --- 設置用戶名密碼、用戶等級
local-user adminssh service-type ssh --- 在aaa服務中開啟ssh服務,一定要開
stelnet server enable --- 打開SSH
ssh user admin authentication-type password --- 認證模式為密碼模式
ssh user admin service-type stelnet --- 服務方式
密鑰認證方式:所有的密鑰認證都一樣
user-interface vty 0 4 --- 進入虛拟終端
authentication-mode aaa --- 認證模式AAA
protocol inbound ssh --- 配置允許登錄接入用戶類型的協議
aaa --- 進入AAA
local-user admin password cipher admin
local-user admin privilege level 15
local-user admin service-type ssh
stelnet server enable
ssh user admin --- 創建ssh賬号會和AAA的賬号關聯
ssh user admin authentication-type rsa --- 認證類型
ssh user admin service-type stelnet
rsa rsa peer-public-key 123 --- 設置導入密鑰名稱為123,并進入導入視圖
public-key-code begin --- 輸入該命令開始導入
123 123 123
123 123 123
public-key-code end --- 輸入該命令結束導入
peer-public-key end --- 輸入該密令退出123
ssh user admin assign rsa-key 123 --- 分配密鑰
,更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!