1、为设备配置可访问的IP地址
vlan 10 interface Vlanif10 ip address 192.168.10.1 255.255.255.0 interface GigabitEthernet0/0/1 port link-type access port default vlan 10
2、在aaa视图下配置用户名密码
[sw1-aaa] local-user admin password cipher//设置密文密码 [sw1-aaa] local-user admin privilege level 15 //设置admin账号权限 [sw1-aaa] local-user admin service-type //设置该账号作用
3、创建远程服务
telnet server enable //打开Telnet服务 [sw1] user-interface vty 0 4 [sw1-ui-vty0-4] authentication-mode aaa //登录方式使用aaa [sw1-ui-vty0-4] user privilege level 15 //用户等级SSH配置
1、使能stelnet服务
[sw1]stelnet server enable [sw1]ssh authentication-type default password
2、生成本地秘钥对
[sw1] rsa local-key-pair create //回车选择默认就行
3、aaa配置
[sw1-aaa] local-user admin service-type//更改该账号作用
4、vty用户配置
[sw1 Server-ui-vty0-4] protocol inbound ssh //登录方式为ssh,默认为telnet



