需求: PC機客戶端通過SSH能夠遠程登錄交換機進行遠程管理。
步驟一,生成本地密鑰對:
[test]rsa local-key-pair create
The key name will be: Auotnavi-callcenter-01_Host
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Input the bits in the modulus[default = 512]:1024
Generating keys...
.++++++
............++++++
...............++++++++
.++++++++
步驟二,配置VTY用戶界面:
[Auotnavi-callcenter-01]user
[Auotnavi-callcenter-01]user-interface vty 0 4
[Auotnavi-callcenter-01-ui-vty0-4]authentication-mode aaa
[Auotnavi-callcenter-01-ui-vty0-4]protocol inbound ssh
步驟三,創建SSH用戶及密碼
#aaa
#local-user root password simple 123456
#local-user root privilege level 3
#local-user root service-type ssh
步驟四: 配置ssh用戶的認證方式和服務方式
[Quidway] ssh user 用戶名authentication-type password
或[Quidway] ssh authentication-type default password #如果用戶過多可直接設置默認的認證方式
[Quidway] ssh user username service-type {sftp | stelnet | all } #這步驟沒有配置,可能出現 server refused to start a shell/command.
步驟五:使能ssh服務
[Quidway] stelnet server enable
客戶端測試連接: