搜档网
当前位置:搜档网 › ssh和telnet配置

ssh和telnet配置

SSH开启
1、生成密钥
rsa local-key-pair create 或 public-key local create rsa

2、创建SSH用户
local-user admin
password cipher/hash admin
service-type ssh
level 3
quit

3、在VTY接口下指定用SSH协议登陆
user-interface vty 0
authentication-mode scheme
protocol inbound ssh
quit


有时需要的命令
ssh authentication-type default password
ssh service enable



看需要配置。配置SSH用户admin的服务类型为Stelnet,认证方式为password认证。
[Switch] ssh user admin service-type stelnet authentication-type password



TELNET 远程登录设置
1.system-view
[H3C] interface Vlan-interface 1
[H3C-Vlan-interface1] ip address 10.10.3.254 255.255.0.0
2.启动Telnet服务器
[H3C]telnet server enable
# 创建本地用户guest,并进入本地用户视图。
[H3C]local-user admin
[H3C-luser-admin]service-type telnet
level 3
[H3C-luser-admin]password simple admin

进入vty 0 4接口:
[H3C]user-interface vty 0 4
设置密码模式:
[H3C-ui-vty0-4]authentication-mode password/scheme
设置密码如果设为password:
[H3C-ui-vty0-4]set authentication password cipher|simple admin
设置登录级别:
[H3C-ui-vty0-4]user privilege level 3

相关主题