H3C SSH/TELNET/FTP WEB界面

客户机要能够远程登录,FTP访问路由器,WEB页面登录交换机(默认模拟器只支持交换机登录web页)

三、配置步骤

配置IP地

interface GigabitEthernet0/0 (进入接口)

ip address 192.168.56.2 255.255.255.0 (配置接口地址)

改名

sysname r1

开启服务

telnet server enable (开启telnet协议)

ssh server enable (开启ssh协议)

ftp server enable (开启ftp协议)

创建用户

local-user wxr class manage 创建用户

password simple 123 密码123

service-type ftp (开启ftp服务)

service-type ssh telnet (开启telnet、ssh服务)

authorization-attribute user-role network-admin (配置用户权限为管理员)

line vty 0 63 (设置登陆的用户数量)

authentication-mode scheme (设置登录类型为既要用户名也需要密码)

*none不需要密码**password需要密码**scheme既要用户名也需要密码*

user-role network-admin (登录为管理员权限)

protocol inbound ?(登录的权限 all为ssh和telnet两种)

  all     All protocols

  ssh     SSH protocol

  telnet  Telnet protocol

  protocol inbound all

[r1]public-key local create rsa                 //本地创建密钥

The local key pair already exists.        

Confirm to replace it? [Y/N]:y

The range of public key modulus is (512 ~ 2048).

Input the modulus length [default = 1024]:y

Created the key pair successfully.

测试:ftp 192.168.56.2        效果略

telnet 192.168.56.2        效果略

创建密钥一些选项(不用做,看一看)

The local key pair already exists.(已有秘钥是否替换)

Confirm to replace it? [Y/N]:y(确认替换)

The range of public key modulus is (512 ~ 2048).(设置秘钥大小为512至2048字节)

If the key modulus is greater than 512, it will take a few minutes.

Press CTRL+C to abort.

Input the modulus length [default = 1024]:512(设置512最小字节)

Generating Keys...

Create the key pair successfully.

The local key pair already exists.(已有秘钥是否替换)

Confirm to replace it? [Y/N]:y(确认替换)

The range of public key modulus is (512 ~ 2048).(设置秘钥大小为512至2048字节)

If the key modulus is greater than 512, it will take a few minutes.

Press CTRL+C to abort.

Input the modulus length [default = 1024]:512(设置512最小字节)

Generating Keys...

Create the key pair successfully.

交换机的web页面登录

<H3C>sys(进入配置界面)

[H3C]sysn sw1

[sw1]ip http en (开启http服务)

[sw1]ip https en (开启https服务)

[sw1]local-user wxr class manage (创建用户wxr)

[sw1-luser-manage-wxr]password simple 111111111q (设置用户密码)

[sw1-luser-manage-wxr]service-type http https (设置服务类型为http和https)

[sw1-luser-manage-wxr]authorization-attribute user-role network-admin (用户级别为管理员)

[sw1-luser-manage-wxr]qui

[sw1]int g1/0/1

[sw1-GigabitEthernet1/0/1]port  link-mode route (将交换机接口改为三层接口)

[sw1-GigabitEthernet1/0/1]ip add 192.168.56.3 24 (配置ip地址)

注:现在路由器的版本比较高,大家如果想要登录成功需要以下步骤

 

 

 

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

夕月琦

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值