锐捷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

相关推荐
强哥聊算力27 分钟前
《算力江湖·DeepSeek》第四集:DeepSeek如何改变中国算力的采购逻辑?
大数据·运维·人工智能·ai·gpu算力
承渊政道1 小时前
新增一台服务器时还要重新装Nginx?Ansible只改hosts目标列表,同一份Playbook继续执行
运维·nginx·ansible·内网穿透·cpolar
德迅云安全-上官1 小时前
服务器遭攻击如何快速响应?从技术原理到接入防御架构的实战指南
运维·服务器·架构
我命由我123451 小时前
6-2.Python 异常处理 - 异常捕获(捕获指定异常、常见异常类型、异常信息)
java·运维·开发语言·python·http·https·java-ee
A-刘晨阳1 小时前
同一句需求优化前后差多少?Prompt Optimizer先整理提示词,再用同一个模型直接对比结果
运维·prompt·cpolar
李纲明2 小时前
WordPress 结账页一直转圈不跳支付:AJAX、缓存排除、支付回调和 REST 怎么逐层核
运维·ajax·缓存·wordpress·woocommerce·devdiy·结账
fengkai45452 小时前
7、Kubernetes的Ingress&Network&Scheduler
运维·kubernetes·k8s·ingress·network·scheduler
码农客栈2 小时前
mt7601u移植
linux·运维·服务器
2601_949847752 小时前
io-ts 跨端三方库仓颉适配全流程
linux·运维·ubuntu
打工仔折腾 AI13 小时前
在 Ubuntu ARM64 部署 Q1 V3.0 MuJoCo 模型:加载、单步推理与执行器响应解析
linux·运维·人工智能·python·深度学习·ubuntu·性能优化