#核心配置
sys
undo info-center enable
sysname sw1
vlan 99
stelnet server enable
telnet server enable
int g 0/0/1
port lin acc
port de vlan 99
q
user-interface vty 0 4
protocol inbound ssh
authentication-mode aaa
q
aaa
local-user admin0 password cipher admin0
local-user admin0 privilege level 15
q
interface vlan99
ip address 192.168.83.200 24
q
rsa local-key-pair create
ssh user admin0
ssh user admin0 authentication-type password
ssh user admin0 service-type stelnet
#其他,部分版本,配置允许任意端口远程
ssh server-source all-interface
#远程测试,cmd远程会报错,推荐用xshell 工具进行远程输入账号和密码即可