锐捷交换机配置SSH服务
锐捷交换机配置SSH服务
电脑SSH交换机, 交换机SSH交换机
1、开启交换机的SSH服务功能
Ruijie#configure terminal
Ruijie(config)#enable service ssh-server
2、生成加密密钥:
Ruijie(config)#crypto key generate dsa ------>加密方式有两种:DSA和RSA,可以随意选择
Choose the size of the key modulus in the range of 360 to 2048 for your
Signature Keys. Choosing a key modulus greater than 512 may take
a few minutes.
How many bits in the modulus [512]: ------>直接敲回车
% Generating 512 bit DSA keys ...[ok]
3、SSH时使用用户名及密码登入交换机
Ruijie(config)#line vty 0 4 ------>进入SSH密码配置模式
Ruijie(config-line)#login local ------>启用SSH时使用本地用户和密码功能
Ruijie(config-line)#transport input ssh ------>使用ssh连接
Ruijie(config-line)#exit ------>回到全局配置模式
Ruijie(config)#username admin password ruijie@123 ------>配置远程登入的用户名为admin,密码为ruijie@123
Ruijie(config)#enable password ruijie@123 ------>配置进入特权模式的密码为ruijie@123
Ruijie(config)#ip ssh cipher-mode ctr others
Ruijie(config)#ip ssh hmac-algorithm md5-96 md5 sha1-96 sha1
Ruijie(config)#ip ssh key-exchange dh_group14_sha1 dh_group1_sha1 dh_group_exchange_sha1
Ruijie(config)#ip ssh version 2
交换机SSH交换机
ssh -l admin 172.16.100.234
电脑SSH交换机
ssh 172.16.100.234
更多推荐
所有评论(0)