当前位置: 首页 > news >正文

仿真模拟--telnet服务两种认证模式(自作)

自己做的笔记,有问题或看不懂请见解一下~

 

目录

两个路由器间实现telnet服务(password认证模式)

server

client

两个路由器间实现telnet服务(aaa认证模式)

server

client


改名

tab键补齐

不会就扣问号                                 ?

save

两个路由器间实现telnet服务(password认证模式)

server

接口配置好ip

开启telnet服务

设置用户端的监听

(认证模式,密码最大长度,密码,用户权限等级)

---自己搜搜吧....


client

将接口配置ip后

直接telnet连接服务端即可.

<Huawei>sy	
<Huawei>system-view 
Enter system view, return user view with Ctrl+Z.
[Huawei]
[Huawei]sy	
[Huawei]sysname client
[client]
[client]
[client]
[client]int	
[client]interface G	
[client]interface GigabitEthernet 0/0/0
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]ip add	
[client-GigabitEthernet0/0/0]ip address 192.168.2.2 24
[client-GigabitEthernet0/0/0]
Jun 20 2024 22:28:45-08:00 client %%01IFNET/4/LINK_STATE(l)[0]:The line protocolIP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]di	
[client-GigabitEthernet0/0/0]dis this
[V200R003C00]
#
interface GigabitEthernet0/0/0ip address 192.168.2.2 255.255.255.0 
#
return
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]
[client-GigabitEthernet0/0/0]qu
[client]
[client]
<client>sa	
<client>save The current configuration will be written to the device. Are you sure to continue? (y/n)[n]:yIt will take several minutes to save configuration file, please wait.........Configuration file had been saved successfullyNote: The configuration file will take effect after being activated
<client>
<client>
<client>tel	
<client>telnet 192.168.2.1Press CTRL_] to quit telnet modeTrying 192.168.2.1 ...Connected to 192.168.2.1 ...Login authenticationPassword:
<server>
<server>

两个路由器间实现telnet服务(aaa认证模式)

server

进入接口,选择aaa模式认证.

进入aaa界面

创建账户名

(密码,权限等级,协议服务)

[server]aaa
[server-aaa]loca	
[server-aaa]local-user ?STRING<1-64>    User name, in form of 'user@domain'. Can use wildcard '*',    while displaying and modifying, such as *@isp,user@*,*@*.Can  not include invalid character / \ : * ? " < > | @ 'wrong-password  Use wrong password to authenticate
[server-aaa]local-user xiaodi^
Error:Incomplete command found at '^' position.
[server-aaa]local-user xiaodi ?access-limit   Set access limit of user(s)ftp-directory  Set user(s) FTP directory permittedidle-timeout   Set the timeout period for terminal user(s)password       Set password privilege      Set admin user(s) levelservice-type   Service types for authorized user(s)state          Activate/Block the user(s)user-group     User group
[server-aaa]local-user xiaodi p	
[server-aaa]local-user xiaodi password ?cipher  User password with cipher text
[server-aaa]local-user xiaodi password  c	
[server-aaa]local-user xiaodi password  cipher ?STRING<1-32>/<32-56>  The UNENCRYPTED/ENCRYPTED password string
[server-aaa]local-user xiaodi password  cipher 123
Info: Add a new user.
[server-aaa]local-user xiaodi p	
[server-aaa]local-user xiaodi passwor	
[server-aaa]local-user xiaodi password 
[server-aaa]local-user xiaodi password	
[server-aaa]local-user xiaodi pt	
[server-aaa]local-user xiaodi pr	
[server-aaa]local-user xiaodi pri	
[server-aaa]local-user xiaodi privilege 3^
Error: Unrecognized command found at '^' position.
[server-aaa]local-user xiaodi privilege >?^
Error: Unrecognized command found at '^' position.
[server-aaa]local-user xiaodi privilege ?level  Set admin user(s) level
[server-aaa]local-user xiaodi privilege l	
[server-aaa]local-user xiaodi privilege level 3
[server-aaa]
[server-aaa]
[server-aaa]local-user xiaodi ?access-limit   Set access limit of user(s)ftp-directory  Set user(s) FTP directory permittedidle-timeout   Set the timeout period for terminal user(s)password       Set password privilege      Set admin user(s) levelservice-type   Service types for authorized user(s)state          Activate/Block the user(s)user-group     User group
[server-aaa]local-user xiaodi se	
[server-aaa]local-user xiaodi service-type tel	
[server-aaa]local-user xiaodi service-type telnet 
[server-aaa]
[server-aaa]
[server-aaa]
[server-aaa]di	
[server-aaa]dis this
[V200R003C00]
#
aaa authentication-scheme defaultauthorization-scheme defaultaccounting-scheme defaultdomain default domain default_admin local-user admin password cipher %$%$K8m.Nt84DZ}e#<0`8bmE3Uw}%$%$local-user admin service-type httplocal-user xiaodi password cipher %$%$zx!S#Qzc72@-{%"5}:<ZX:\'%$%$local-user xiaodi privilege level 3local-user xiaodi service-type telnet
#
return
[server-aaa]

client

telnet连接服务端,

输入账户密码,登录~

<client>
<client>
<client>tel	
<client>telnet 192.168.2.1Press CTRL_] to quit telnet modeTrying 192.168.2.1 ...Connected to 192.168.2.1 ...Login authenticationPassword:
<server>
<server>Please check whether system data has been changed, and save data in timeConfiguration console time out, please retry to log onThe connection was closed by the remote host
<client>Please check whether system data has been changed, and save data in timeConfiguration console time out, please press any key to log on<client>
<client>tel	
<client>telnet 192.168.2.1Press CTRL_] to quit telnet modeTrying 192.168.2.1 ...Connected to 192.168.2.1 ...Login authenticationUsername:xiaodi
Password:
Error: Local authentication is rejected.Logged Fail!Username:xiaodi
Password:
<server>
<server>


http://www.lryc.cn/news/377847.html

相关文章:

  • Apple Phone Memory
  • Kubernetes容器运行时:Containerd vs Docke
  • 【java 线程的状态】
  • php加密验签
  • 【Golang - 90天从新手到大师】Day06 - 数组
  • java的有参构造方法
  • Vue66-vue-默认插槽
  • tsf-consul的使用
  • 【perl】基本语法 /备忘录/
  • mongodb 集群安装
  • 绿茶集团重启IPO:流量渐退、业绩波动,还能讲出好故事吗?
  • Git与SSH
  • 我的创作纪念日--码农阿豪
  • Git 学习笔记(超详细注释,从0到1)
  • GitLab项目组相关操作(创建项目组Group、创建项目组的项目、为项目添加成员并赋予权限)
  • 英语恶补ing
  • DS1339C串行实时时钟-国产兼容RS4C1339
  • 神经网络模型---LeNet-5
  • 免费分享:1994-2020年中国各行业二氧化碳排放数据(附下载方法)
  • Qemu虚拟机在线迁移到VMware
  • 计算机游戏因为d3dcompiler_47.dll丢失无法启动怎么办?解决只要d3dcompiler_47.dll丢失无法启动游戏软件的方法
  • LDO的原理及测试方法
  • 图论算法学习
  • 面试题——RabbitMQ
  • 前端开发之浏览器垃圾回收机制
  • less-loader的less转成CSS的底层原理
  • 解锁Flutter中的ProcessResult:让外部命令执行变得轻松
  • 第二十五篇——信息加密:韦小宝说谎的秘诀
  • Redis 主从复制+哨兵+集群
  • cpolar:通过脚本自动更新主机名称和端口号进行内网穿透【免费版】