ensp实操--ssh和sftp远程登录

image-20230721145958695

telnet缺少安全的认证方式,采用TCP明文传输,存在非常大隐患

ssh=stelnet

image-20230721155001328

#1.给R1、R2配置ip

R1 10.1.1.1/24

interface g0/0/0
ip address 10.1.1.1 24

image-20230721150351378

##R2 10.1.1.2/24

interface g0/0/0
ip address 10.1.1.2 24

image-20230721150139779

2.使用aaa认证,绑定ssh远程登录

R1

user-interface vty 0 4
authentication-mode aaa
protocol inbound ssh

image-20230721151306547

3.设置aaa认证

设置用户管理权限,使用ssh方式登录

local-user zc password cipher admin123 privilege level 3
local-user zc service-type ssh

image-20230721151703696

4.使用密码认证登录方式并开启ssh服务

ssh user zc authentication-type password
stelnet  server enable

image-20230721152350277

#5.显示用户信息

display ssh user-information zc

image-20230721152553283

ssh配置信息,可以看到sftp还没有打开

display ssh server status

image-20230721152713390

6.R2第一次ssh远程登录R1

ssh client first-time enable
stelnet 10.1.1.1

image-20230721153344596

7.查看R1登录情况

display ssh server session 

image-20230721153623769

8.配置sftp

local-user ftpzc password cipher adminftp
local-user ftpzc service-type ssh
local-user ftpzc privilege level 3

image-20230721154137199

查看目录

image-20230721154512349

在根目录登录

local-user ftpzc  ftp-directory flash:
ssh user ftpzc authentication-type password

image-20230721154635201

9.开启sftp

sftp server enable 
display ssh server status

image-20230721154902756

10.登录sftp

sftp 10.1.1.1

image-20230721155302354

  • 0
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

§666§

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

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

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

打赏作者

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

抵扣说明:

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

余额充值