1.思科交换机
查看是否支持ssh show ip ssh
更改ssh密码
enable
configure terminal
username 用户名 password 密码
更改console密码
enable
configure terminal
enable secret 密码
login(老版本不用设置cisco 2950)
write(在中括号模式下)
设置consloe密码
line console 0
password 密码
2.华为交换机
更改用户名密码
aaa
local-user “用户名” password irreversible-cipher(不可逆密码) 密码
console密码更改
user-interface console 0
authentication-mode password
set authentication password cipher 密码
return(commit)
save(在尖括号模式下)
提交后,cisco千万得记得write(在中括号模式下),华为千万记得save(在尖括号模式下)

本文详细介绍了如何在思科和华为交换机上管理SSH和Console登录密码,包括密码的设置、修改及保存方法。对于思科交换机,通过enable、configure terminal等命令进行操作;华为交换机则使用aaa、local-user等命令。文章强调了配置完成后在不同模式下保存设置的重要性。
5817





