华为ensp ssh 配置

  1. SSH(stelnet)配置。

[R1] rsa local-key-pair create #生成一个加密秘钥。

The key name will be: Host

% RSA keys defined for Host already exist.

Confirm to replace them? (y/n)[n]:y

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

NOTES: If the key modulus is greater than 512,

It will take a few minutes.

Input the bits in the modulus[default = 512]:1024

Generating keys...

............++++++

..++++++

........................++++++++

......++++++++

[R1] user-interface vty 0 4

[R1-ui-vty0-4] authentication-mode aaa

[R1-ui-vty0-4] protocol inbound ssh #进程默认是不开启ssh的所以需要开启ssh。

[R1] aaa

[R1-aaa] local-user huawei password cipher 123 privilege level 3

Info: Add a new user.

[R1-aaa] local-user huawei service-type ssh #设置用户的服务类型为ssh。

[R1] stelnet server enable #开启stelnet 服务端。

Info: Succeeded in starting the STELNET server.

[R2] ssh client first-time enable #开启客户端认证。

[R2] stelnet 12.1.1.1 #ssh登录。

Please input the username:huawei

Trying 12.1.1.1 ...

Press CTRL+K to abort

Connected to 12.1.1.1 ...

The server is not authenticated. Continue to access it? (y/n)[n]:y #对服务端进行认证。

Aug 19 2022 10:13:23-08:00 R2 %%01SSH/4/CONTINUE_KEYEXCHANGE(l)[2]:The server ha

d not been authenticated in the process of exchanging keys. When deciding whethe

r to continue, the user chose Y.

[R2]

Save the server's public key? (y/n)[n]:y #保存服务端的公钥。

The server's public key will be saved with the name 12.1.1.1. Please wait...

Aug 19 2022 10:13:49-08:00 R2 %%01SSH/4/SAVE_PUBLICKEY(l)[3]:When deciding wheth

er to save the server's public key 12.1.1.1, the user chose Y.

[R2]

Enter password: #输入密码。

<R1> sys #进入系统视图。

Enter system view, return user view with Ctrl+Z.

[R1]

SSH与Telnet的区别是ssh是不可通过抓包看到详细的一个操作过程的,而Telnet会被通过抓包看到操作过程。

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

打赏作者

所遇皆遗

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

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

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

打赏作者

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

抵扣说明:

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

余额充值