华为交换机设置SSH登录,RSA密钥长度按默认即可。
rsa local-key-pair create
ssh user admin
ssh user admin authentication-type password
ssh user admin service-type stelnet
aaa
local-user admin password cipher 登录密码
local-user admin privilege level 15
local-user admin service-type ssh
stelnet server enable
user-interface vty 0 4
authentication-mode aaa
protocol inbound all
如果是远程配置,在ssh测试成功后将protocol inbound all改为protocol inbound ssh