<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
# 配置 VLAN 接口 1 的 IP 地址,客户端将通过该地址连接 SSH 服务器。
[Switch] interface vlan-interface 1
[Switch-Vlan-interface1] ip address 192.168.1.40 255.255.255.0
[Switch-Vlan-interface1] quit
# 设置 SSH 客户端登录用户界面的认证方式为 AAA 认证。
评论0