我们已经准备好了,你呢?

2022我们与您携手共赢,为您的企业网络安全保驾护航!

一.设备作为 SSH 服务器端设置


# 生成 RSA 密钥对。
<H3C>system-view // 进入系统视图
System View: return to User View with Ctrl+Z.
[H3C]public-key local create rsa // 生成 RSA 密钥对
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Press CTRL+C to abort.
Input the bits of the modulus[default = 1024]:
Generating Keys...
++++++++++++++++++++++++++++++++++++++
+++++++++++
+++++++++++++
+++

# 生成 DSA 密钥对。
[H3C]public-key local create dsa // 生成 DSA 密钥对
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Press CTRL+C to abort.
Input the bits of the modulus[default = 1024]:
Generating Keys...

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++
+++++++++++++++++++++++++++++++*+++++++++++++

二.启动 SSH 服务器。


[H3C]ssh server enable // 启动 SSH 服务器
Info: Enable SSH server.


三.设置 SSH 客户端登录用户界面的认证方式为 scheme 方式。


[H3C]line vty 0 4 // 进入 VTY 0 ~ 4 用户界面视图
[H3C-line-vty0-4]authentication-mode scheme // 认证方式为 scheme 用户名 + 密码的
方式
# 设置 Switch 上远程用户登录协议为 SSH。
[H3C-line-vty0-4]protocol inbound ssh // 设置远程用户登录协议为 SSH
[H3C-line-vty0-4]quit // 退出当前视图


四.创建本地用户,密码,并设置用户访问的命令级别为 network-admin。


[H3C]local-user ABC// 创建本地用户 ABC
[H3C-luser-ABC]password simple 123456 // 密码为 123456
[H3C-luser-ABC]service-type ssh // 服务类型为 ssh
[H3C-luser-ABC]authorization-attribute user-role network-admin // 权
限级别为管理员权限
[H3C-luser-ABC]quit // 退出当前视图


五.保存配置


[H3C]save force // 保存配置
 

【完】

我们凭借多年的智能化设计及施工经验,坚持以“帮助中小企业实现现代化网络”为宗旨,累计为4000多家客户提供品质智能化服务,得到了客户的一致好评。如果您有综合布线、计算机网络、无线覆盖、门禁考勤、机房建设、防火墙、路由器及交换机调试等方面的需求...
请立即点击咨询我们或拨打咨询热线: 17804441181,我们会详细为你一一解答你心中的疑难。项目经理在线

我们已经准备好了,你呢?

2022我们与您携手共赢,为您的企业网络安全保驾护航!

在线客服
联系方式

热线电话

17804441181

上班时间

周一到周五

公司电话

+86-512-65829193

二维码
微信
线