H3C交换机开启SSH登录
教程的前提条件:系统已经配置好IP并可通网,未配置用户名以及其他登录方式,通过console线连接交换机
进入系统视图和生成密钥对
<Switch>sys
[Switch]public-key local create rsa
[Switch]public-key local create dsa
中间会提示密钥大小,一般默认回车即可
启动SSH服务器
[Switch]ssh server enable
配置用户
[Switch]user-interface vty 0 4
[Switch-ui-vty0-4]authentication-mode scheme
[Switch-ui-vty0-4]protocol inbound ssh
[Switch-ui-vty0-4]quit
[Switch]local-user test
[Switch-local-user-test]password simple test123
[Switch-local-user-test]service-type ssh
[Switch-local-user-test]authorization-attribute level 3
[Switch-local-user-test]quit
[Switch] ssh user test service-type stelnet authentication-type password
到这里就结束了,默认端口22,可以通过SSH工具进行远程连接了
阅读剩余
版权声明:
作者:Admin
链接:https://www.shellop.com/archives/6
文章版权归作者所有,未经允许请勿转载。
THE END