<Device> system-view [Device] public-keylocal create rsa The range of public key size is (512 ~ 2048). If the keymodulusis greater than 512, it will take a few minutes. Press CTRL+C to abort. Input the moduluslength [default = 1024]: Generating Keys... ........................++++++ ...................++++++ ..++++++++ ............++++++++ Create the key pair successfully.
生成 DSA 密钥对。
1 2 3 4 5 6 7 8 9 10
[Device] public-keylocal create dsa The range of public key size is (512 ~ 2048). If the keymodulusis greater than 512, it will take a few minutes. Press CTRL+C to abort. Input the moduluslength [default = 1024]: Generating Keys... .++++++++++++++++++++++++++++++++++++++++++++++++++* ........+......+.....+......................................+ ...+.................+..........+...+. Create the key pair successfully.
使能 SSH 服务器功能。
1
[Device] ssh serverenable
创建 VLAN 2,并将 GigabitEthernet1/0/2 加入 VLAN 2。
1 2 3
[Device] vlan 2 [Device-vlan2] port gigabitethernet 1/0/2 [Device-vlan2] quit
配置 VLAN 接口 2 的 IP 地址,客户端将通过该地址连接 Stelnet 服务器。
1 2 3
[Device] interface vlan-interface2 [Device-Vlan-interface2] ip address 192.168.1.40255.255.255.0 [Device-Vlan-interface2] quit
设置 Stelnet 客户端登录用户界面的认证方式为 scheme。
1 2 3
[Device] line vty 063 [Device-line-vty0-63] authentication-mode scheme [Device-line-vty0-63] quit