导航:首页 > 程序命令 > 华为ssh登录命令

华为ssh登录命令

发布时间:2024-11-03 05:51:56

Ⅰ 华为交换机的SSH配置

ssh对密钥长度有要求,不足则登录时会报错: ssh_rsa_verify: RSA molus too small: 512 < minimum 768 bits

ssh authentication-type default password 可设置所有用户默认的认证方式为password

刚使用 ssh user root authentication-type password 设置root用户为password认证,因此进行以下操作

未实践!

Ⅱ 如何利用华为交换机配置SSH登录

配置思路

采用如下的思路配置用户通过

STelnet

登录系统:

1.

配置

SSH

服务器管理网口的

IP

地址。

2.

SSH

服务器端生成本地密钥对,实现在服务器端和客户端进行安全地数据交互。

3.

配置

SSH

服务器端的

VTY

用户界面。

4.

配置

SSH

用户,包括认证方式,用户名和密码。

5.

SSH

服务器端使能

STelnet

服务器功能以及配置用户的服务类型。

数据准备

为完成此配置例,需准备如下的数据:

lSSH

服务器管理网口的

IP

地址。

lSSH

用户的认证方式为

password

,用户名为“

client001

,密码为“

huawei

lclient001

的用户级别为

3

lSSH

服务器端的

IP

地址为

10.137.217.223

操作步骤

步骤

1

配置登录地址

<HUAWEI>system-view

[~HUAWEI]sysnameSSHServer

[~HUAWEI]commit

[~SSHServer]interfacegigabitethernet0/0/0

[~SSHServer-GigabitEthernet0/0/0]undoshutdown

[~SSHServer-GigabitEthernet0/0/0]ipaddress10.137.217.225255.255.0.0

[~SSHServer-GigabitEthernet0/0/0]commit

[~SSHServer-GigabitEthernet0/0/0]quit

步骤

2

在服务器端生成本地密钥对

[~SSHServer]rsalocal-key-paircreate

Thekeynamewillbe:SSHServer_Host

Therangeofpublickeysizeis(512~2048).

NOTE:Ifthekeymolusisgreaterthan512,

Itwilltakeafewminutes.

Inputthebitsinthemolus[default=512]:

输入

1000,

注意该值需要大于

768

否则用

ssh

登录时会出现下面的错误,

但是指导书中没写

明白。

步骤

3

在服务器端配置

VTY

用户界面

[~SSHServer]user-interfacevty04

[~SSHServer-ui-vty0-4]authentication-modeaaa



[~SSHServer-ui-vty0-4]protocolinboundssh

[~SSHServer-ui-vty0-4]commit

VRP

[~SSHServer-ui-vty0-4]quit

说明

若配置登录协议为

SSH

,则

VRP

设备将自动禁止

Telnet

功能。

步骤

4

在服务器端配置

SSH

用户的用户名和密码

[~SSHServer]aaa

[~SSHServer-aaa]local-

[~SSHServer-aaa]local-userclient001level3

[~SSHServer-aaa]local-userclient001service-typessh

[~SSHServer-aaa]commit

[~SSHServer-aaa]quit

步骤

5

使能

STelent

功能,并配置用户的服务类型为

STelnet

[~SSHServer]stelnetserverenable

[~SSHServer]sshauthentication-typedefaultpassword

[~SSHServer]commit

Ⅲ 华为核心S7706把Telnet关闭开启SSH怎么做求命令讲解,谢谢!

SECURECRT登录进去后
< HUAWEI-2F>敲 sys
进入 system view

关闭Telnet
[HUAWEI-2F]undo telnet server enable
[HUAWEI-2F]quit
< HUAWEI-2F>save
The current configuration will be written to the device.

开启ssh
[HUAWEI-2F]
[HUAWEI-2F]rsa local-key-pair create
The key name will be: HUAWEI-2F_Host
The range of public key size is (512 ~ 2048).
NOTES: If the key molus is greater than 512,
it will take a few minutes.
Input the bits in the molus[default = 2048]:
Generating keys…
……………….+++++
……………………++
….++++
………..++

[HUAWEI-2F]user-interface vty 0 4
[HUAWEI-2F-ui-vty0-4]authentication-mode aaa
Warning: The level of the user-interface(s) will be the default level of AAA users, please check whether it is correct.

[HUAWEI-2F-ui-vty0-4]protocol inbound ssh
[HUAWEI-2F-ui-vty0-4]qu
[HUAWEI-2F]ssh user admin
Info: Succeeded in adding a new SSH user.
[HUAWEI-2F]ssh user admin authentication-type password
[HUAWEI-2F]
[HUAWEI-2F]
[HUAWEI-2F]
[HUAWEI-2F]aaa

//有密码可以不用设置
[HUAWEI-2F-aaa]local-user admin password
Please configure the login password (8-128)
It is recommended that the password consist of at least 2 types of characters, including lowercase letters, uppercase letters, numerals and special characters.
Please enter password:
Please confirm password:
Please enter old password:
Error: The new password is the same as the old password.

[HUAWEI-2F-aaa]local-user admin service-type ssh
Info: After changing the rights (including the password, access type, FTP directory, and level) of a local user, the rights of users already online do not change. The change takes effect to users who go online after the change.

[HUAWEI-2F-aaa]qu
[HUAWEI-2F]
[HUAWEI-2F]
[HUAWEI-2F]

[HUAWEI-2F]ssh user admin service-type stelnet

[HUAWEI-2F]stelnet server enable
Info: Succeeded in starting the Stelnet server.
[HUAWEI-2F]quit
< HUAWEI-2F>save

阅读全文

与华为ssh登录命令相关的资料

热点内容
华为手机代码编程教学入门 浏览:762
和彩云没会员怎样解压 浏览:634
androidimageview保存 浏览:387
新买店铺什么服务器 浏览:883
文件夹能直接刻录吗 浏览:493
androidxmpp删除好友 浏览:969
javac哪个前景好 浏览:426
中华英才网app为什么不能搜索了 浏览:660
服务器域名是什么意思 浏览:52
Linux导出mysql命令 浏览:159
无诈建邺是什么app 浏览:228
python中的双色球 浏览:166
python解释器里如何换行 浏览:410
python编写格式 浏览:574
用python做出来的软件 浏览:469
服务器指示灯代表什么 浏览:702
做一个单片机销售需要知识 浏览:777
怎样去连接加密wifi 浏览:682
有什么app自带拍摄模板的 浏览:435
登录相亲网为什么要下载app呢 浏览:545