博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
开启华为交换机路由器ssh访问
阅读量:7109 次
发布时间:2019-06-28

本文共 1150 字,大约阅读时间需要 3 分钟。

需求: PC机客户端通过SSH能够远程登录交换机进行远程管理。

步骤一,生成本地密钥对:

1
2
3
4
5
6
7
8
9
10
11
[
test
]rsa 
local
-key-pair create 
The key name will be: Auotnavi-callcenter-01_Host 
The range of public key size is (512 ~ 2048). 
NOTES: If the key modulus is greater than 512, 
       
It will take a few minutes. 
Input the bits 
in 
the modulus[default = 512]:1024 
Generating keys... 
.++++++ 
............++++++ 
...............++++++++ 
.++++++++

步骤二,配置VTY用户界面:

1
2
3
4
[Auotnavi-callcenter-01]user 
[Auotnavi-callcenter-01]user-interface vty 0 4 
[Auotnavi-callcenter-01-ui-vty0-4]authentication-mode aaa 
[Auotnavi-callcenter-01-ui-vty0-4]protocol inbound 
ssh

步骤三,创建SSH用户及密码

1
2
3
4
#aaa
#local-user root password simple 123456 
#local-user root privilege level 3 
#local-user root service-type ssh

步骤四:  配置ssh用户的认证方式和服务方式

1
2
3
[Quidway] 
ssh 
user 用户名 authentication-
type 
password
或[Quidway] 
ssh 
authentication-
type 
default password   
#如果用户过多可直接设置默认的认证方式
[Quidway] 
ssh 
user username service-
type 
{
sftp 
| stelnet | all }      
#这步骤没有配置,可能出现 server refused to start a shell/command.

步骤五:使能ssh服务

1
[Quidway] stelnet server 
enable
本文转自lq201151CTO博客,原文链接:http://blog.51cto.com/liuqun/2045672 ,如需转载请自行联系原作者
你可能感兴趣的文章
ORA-00845: MEMORY_TARGET not supported on this system报错解决
查看>>
如何用PLSQL Developer登陆远程服务器
查看>>
启动mac自带的apache服务器,并打开支持的php模块
查看>>
js中用正则表达式 过滤特殊字符, js验证中文字母数字
查看>>
"永恒之蓝"勒索软件病毒防范方法及措施
查看>>
我的友情链接
查看>>
CIO如何在企业并购中生存
查看>>
我的友情链接
查看>>
linux系统最小化安装原则
查看>>
【Yii2-CookBook】JSON 和 XML 输出
查看>>
PDF 解密
查看>>
SQL Server 2005客户端安装和端口设置
查看>>
Linux安装PPS(知已知彼、百战不殆)
查看>>
如何使用Apache HTTP Server?(window)
查看>>
GoldenGate版本兼容知识汇总
查看>>
Java 函数
查看>>
企业工商信息数据接口
查看>>
Linux 第82天 iptables
查看>>
双十一在即,阿里的七种武器
查看>>
linux扩容根分区脚本,适合用于centos 6、centos 7版本
查看>>