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 --- 分配密钥

,