1. 程式人生 > >華為設備開啟ssh登錄

華為設備開啟ssh登錄

ssh

  • 在服務器端生成本地密鑰對
  • <HUAWEI> system-view
    [HUAWEI] sysname SSH Server
    [SSH Server] rsa local-key-pair create
    The key name will be: SSH Server_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 = 2048]:2048
    Generating keys...
    ......................++++++++
    ........................................................++++++++
    ........+++++++++
    .....+++++++++

    **2. 在服務器端創建SSH用戶

    # 配置VTY用戶界面。

    [SSH Server] user-interface vty 0 4
    [SSH Server-ui-vty0-4] authentication-mode aaa
    [SSH Server-ui-vty0-4] protocol inbound ssh
    [SSH Server-ui-vty0-4] quit

    **· 創建SSH用戶client001。

    # 新建用戶名為client001的SSH用戶,且認證方式為password。

    [SSH Server] aaa
    [SSH Server-aaa] local-user client001 password irreversible-cipher Huawei@123
    [SSH Server-aaa] local-user client001 privilege level 3
    [SSH Server-aaa] local-user client001 service-type ssh
    [SSH Server-aaa] quit
    [SSH Server] ssh user client001 authentication-type password

    3. SSH服務器端開啟STelnet服務功能

    # 開啟STelnet服務功能。

    [SSH Server] stelnet server enable
    4. 配置SSH用戶client001、client002的服務方式為STelnet

    [SSH Server] ssh user client001 service-type stelnet

    參考:http://forum.huawei.com/enterprise//zh/thread-334309.html

    華為設備開啟ssh登錄