<switch>
[switch]aaa
[switch-aaa]local-user admin password cipher Huawei
@123 -----------------------you can change this password
[switch-aaa]local-user admin service-type ssh
[switch-aaa]local-user admin privilege level 15
[switch-aaa]local-user admin ftp-directory flash:
[switch-aaa]quit
[switch]ssh-client first time enable
[switch]quit
<switch>save
then you can login with the assigned IP address connected to the host