锐捷ssh用户名密码登录

一 组网说明

如上图,R1和R2设备互联,R1开启ssh进行测试

二 设备配置

2.1 ssh配置

1.设备配置

hostname R1

!

enable service ssh-server

username 1 password Admin@123

username 1 privilege 15

!

line vty 0 4

login local

!

2.2 PC作为客户端-登录测试

C:\Users\Administrator>ssh 1@192.168.1.133

The authenticity of host '192.168.1.133 (192.168.1.133)' can't be established.

RSA key fingerprint is SHA256:1a4MBauwZ+BX5+0Hfiy40/SO+/jVoqvc0tN2WU6kyg0.

Are you sure you want to continue connecting (yes/no/fingerprint)? yes

Warning: Permanently added '192.168.1.133' (RSA) to the list of known hosts.

1@192.168.1.133's password:

User's password is too weak. Please change the password!

R1#

2.3 登录状态查看

R1#show users

Line User Host(s) Idle Location


* 0 con 0 --- idle 00:00:00 ---

1 vty 0 1 idle 00:02:24 192.168.1.13

R1#show users all

Line User Host(s) Idle Location


* 0 con 0 --- idle 00:00:00 ---

1 vty 0 1 idle 00:02:30 192.168.1.13

2 vty 1 --- 00:00:00 ---

3 vty 2 --- 00:00:00 ---

4 vty 3 --- 00:00:00 ---

5 vty 4 --- 00:00:00 ---

R1#

R1#show service

web-server : disabled

web-server(https): disabled

snmp-agent : enabled

ssh-server : enabled

telnet-server : enabled

R1#

2.4 锐捷网络设备作为客户端-登录测试

R2#ssh -l 1 192.168.10.1

%Trying 192.168.10.1, 22,...open

1@192.168.10.1's password:

User's password is too weak. Please change the password!

R1#

2.5 登录状态再次查看

R1#

R1#show users

Line User Host(s) Idle Location


* 0 con 0 --- idle 00:00:00 ---

2 vty 1 1 idle 00:01:42 1.1.1.2

R1#

R1#show users all

Line User Host(s) Idle Location


* 0 con 0 --- idle 00:00:00 ---

1 vty 0 --- 00:00:00 ---

2 vty 1 1 idle 00:01:48 1.1.1.2

3 vty 2 --- 00:00:00 ---

4 vty 3 --- 00:00:00 ---

5 vty 4 --- 00:00:00 ---

R1#

R1#show service

web-server : disabled

web-server(https): disabled

snmp-agent : enabled

ssh-server : enabled

telnet-server : enabled

R1#

2.6 SSH参数查看

R2#ssh ?

-c Select encryption algorithm

-l Log in using this user name

-m Select HMAC algorithm

-p Connect to this port

-v Specify SSH Protocol Version

WORD IP address or hostname of a remote system

R2#ssh -l 1 ?

-c Select encryption algorithm

-m Select HMAC algorithm

-p Connect to this port

-v Specify SSH Protocol Version

WORD IP address or hostname of a remote system

R2#ssh -l 1 192.168.10.1

%Trying 192.168.10.1, 22,...open

1@192.168.10.1's password:

User's password is too weak. Please change the password!

R1#

3.line vty接口配置

R1(config-line)#transport ?

input Define which protocols to use when connecting to the terminal server

R1(config-line)#transport in

R1(config-line)#transport input ?

all All protocols

none No protocols

ssh TCP/IP SSH protocol

telnet TCP/IP Telnet protocol

R1(config-line)#transport input

相关推荐
专注API从业者9 小时前
告别人工盯品!借助 Open Claw 搭建电商商品自动化监控与数据分析系统(完整可运行源码)
大数据·运维·数据库·数据分析·自动化
爱喝水的鱼丶11 小时前
SAP-ABAP:ABAP 用户出口参数传递与上下文获取:SAP 标准数据读取与交互逻辑实现
运维·性能优化·交互·sap·abap·经验交流·出口
IT大白鼠11 小时前
PentestGPT作为AI运维编排工作流自动化底座的技术架构与应用价值评估
运维·人工智能·自动化·pentestgpt
j7~11 小时前
【Git】《Git 系列指南(二):Git基本操作与 reset 三种模式》
运维·git·git安装·git基本操作·git配置·创建git仓库·git reset三种模式
zzzll111112 小时前
n8n 工作流自动化平台入门指南
运维·自动化
Hrain-AI12 小时前
Anthropic oncall-kit 开源拆解:运维 Agent 落地范式的四基石与权限边界
运维·人工智能·开源
HXDGCL12 小时前
从“转盘困局”到“直线破局”:华创力科技PTS精密分度输送系统如何重塑自动化产线
运维·科技·自动化
戴西软件13 小时前
国内有哪些智能化RPA工具?——从“录数据”到“做判断”,国产数字员工正在重新定义自动化
运维·自动化·rpa
Linux-lucky13 小时前
28-Linux学习之旅之Maven与Nexus制品库
linux·运维·学习·nginx·tomcat·maven
Zhu75814 小时前
在Docker环境离线部署最新版Harbor
运维·docker·容器