首先新建账户,将账户服务类型设置为telnet及ssh,用户等级设为level3或更高。

aaa
local-user rohdea password cipher rohdea123
local-user rohdea service-type telnet ssh
local-user rohdea privilege level 3
quit
user interface vty 0 4
authentication-mode aaa
protocol inbound all
quit

服务端在用户视图下即可访问。

ssh配置

ssh user rohdea
ssh user rohdea authentication-type password
ssh user rohdea service-type stelnet
ssh client first-time enable