# Enable the STelnet service and create an SSH user
```
system-view
dsa local-key-pair create
user-interface vty 0 4
authentication-mode aaa
protocol inbound all
quit
```
**Create an SSH user named *admin* on the Switch and configure password authentication**
```
aaa
local-user admin password irreversible-cipher Huawei@123
local-user admin privilege level 3
local-user admin service-type terminal ssh http
quit
sftp ipv4 server enable
stelnet ipv4 server enable
ssh user admin
ssh user admin authentication-type password
ssh user admin service-type all
ssh user admin sftp-directory flash:/
ssh authentication-type default password
```