华为交换机使用SSH方式远程登陆必要的配置

简介:

#
aaa
 authentication-scheme default
 authorization-scheme default
 accounting-scheme default
 domain default
 domain default_admin
 local-user *** password cipher ***

 local-user *** privilege level 3
 local-user *** service-type ssh
 undo local-user admin
#
 stelnet server enable
 ssh user ***
 ssh user *** authentication-type password
 ssh user *** service-type stelnet
#
user-interface maximum-vty 15
user-interface con 0
 authentication-mode password
 set authentication password cipher ***
 idle-timeout 5 0
user-interface vty 0 4
 authentication-mode aaa
 user privilege level 15
 history-command max-size 20
 idle-timeout 5 0
 screen-length 0
 protocol inbound ssh
user-interface vty 5 14
#

 

 

如果用其它端口远程登陆修改SSH方式,会出现原方式无法登陆,新方式也无法登陆。用console连接并管理交换机

进入

user-interface vty 0 4

将以下配置

 protocol inbound ssh

改为
 protocol inbound all

再改回

 protocol inbound ssh

就可以了。

 


    本文转自wangheyu1 51CTO博客,原文链接:http://blog.51cto.com/wangheyu1/1919555,如需转载请自行联系原作者






相关文章
|
13天前
|
消息中间件 安全 Unix
SSH配置多台服务器之间的免密登陆以及登陆别名
SSH配置多台服务器之间的免密登陆以及登陆别名
23 1
|
3月前
|
Linux 网络安全
CentOS7服务器SSH登陆时自动显示服务器基础信息
CentOS7服务器SSH登陆时自动显示服务器基础信息
42 0
|
3月前
|
Ubuntu 安全 网络安全
百度搜索:蓝易云【Ubuntu系统SSH服务端配置】
现在,你已经成功在Ubuntu系统上配置了SSH服务端。这将允许其他计算机通过SSH协议连接到你的Ubuntu系统,并进行远程管理和操作。请注意,远程访问有安全风险,建议在生产环境中采取必要的安全措施来保护系统。
40 3
|
5月前
|
Ubuntu 网络安全 Docker
Ubuntu 安装与配置ssh (docker)
Ubuntu 安装与配置ssh (docker)
115 0
|
5月前
|
网络安全
idea配置远程服务器实现远程编辑文件及ssh连接
idea配置远程服务器实现远程编辑文件及ssh连接
118 0
|
1月前
|
网络协议 网络虚拟化 网络架构
交换机入门快速配置
交换机入门快速配置
|
2月前
|
安全 Shell 网络安全
【Git】TortoiseGit(小乌龟)配置SSH和使用
【Git】TortoiseGit(小乌龟)配置SSH和使用
148 0
|
8天前
|
网络协议 安全 Shell
配置ssh服务
配置ssh服务
|
16天前
|
Shell 网络安全 开发工具
配置SSH时候,Permission denied问题解决方法
配置SSH时候,Permission denied问题解决方法
33 4
|
22天前
|
网络协议 安全 网络安全
二层交换机与防火墙对接上网配置示例
二层交换机指的是仅能够进行二层转发,不能进行三层转发的交换机。也就是说仅支持二层特性,不支持路由等三层特性的交换机。 二层交换机一般部署在接入层,不能作为用户的网关