使用SSH+密碼認證(基本SSH配置方法)
注:在用戶使用SSH登錄交換機時,交換機對所要登錄的用戶使用密碼對其進行身份驗證
生成RSA和DSA密鑰對
[H3C]public-key local create rsa
[H3C]public-key local create dsa
設置用戶接口上的認證模式為AAA,並讓用戶接口支持SSH協議
[H3C]user-interface vty 0 4
[H3C-ui-vty0-4]authentication-mode scheme
[H3C-ui-vty0-4]protocol inbound ssh
創建用戶juniper,設置認證密碼為juniper登錄協議為SSH
[H3C]local-user juniper
[H3C-luser-juniper]password cipher juniper
指定用戶juniper的認證方式為password
[H3C]ssh user juniper service-typ all authentication-type password
一個基本的SSH配置就結束了,配置完成后即可使用SSH登錄工具進行連接交換機
