华为交换机配置SSH 您所在的位置:网站首页 华为交换机如何删除ssh配置 华为交换机配置SSH

华为交换机配置SSH

2024-07-12 00:32| 来源: 网络整理| 查看: 265

1、生成SSH秘钥

[SSH Server] rsa local-key-pair create

The key name will be: SSH Server_Host

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 = 2048]:2048

Generating keys...

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

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

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

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

2、 在服务器端创建SSH用户

# 配置VTY用户界面。

[SSH Server] user-interface vty 0 4

[SSH Server-ui-vty0-4] authentication-mode aaa

[SSH Server-ui-vty0-4] protocol inbound ssh

[SSH Server-ui-vty0-4] quit

·         创建SSH用户client001。

# 新建用户名为client001的SSH用户,且认证方式为password。

[SSH Server] aaa

[SSH Server-aaa] local-user client001 password irreversible-cipher Huawei@123

[SSH Server-aaa] local-user client001 privilege level 3

[SSH Server-aaa] local-user client001 service-type ssh

[SSH Server-aaa] quit

[SSH Server] ssh user client001 authentication-type password

[SSH Server]  stelnet server enable //开服务

[SSH Server] ssh user itadmin service-type stelnet  //让用户能使ssh



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有