H3C交换机SSH配置
测试机型为H3C S1850-52P
配置交换机为SSH服务器,并采用password的登陆方式。
配置SSH服务器
生成RSA密钥对。
<Switch> system-view
[Switch] public-key local create 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密钥对。
[Switch] public-key local create 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服务器。
[Switch] ssh server enable
设置SSH客户端登录用户界面的认证方式为AAA认证。
[Switch] user-interface vty 0 15
[Switch-ui-vty0-15] authentication-mode scheme
[Switch-ui-vty0-15] quit
创建本地用户user,并设置用户访问的命令级别为3。
[Switch] local-user user
[Switch-luser-user] password simple aabbcc
[Switch-luser-user] service-type ssh
[Switch-luser-user] authorization-attribute level 3
[Switch-luser-user] quit
_(:3 」∠)_