导航:首页 > 程序命令 > 华为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登录命令相关的资料

热点内容
linux登录失败次数 浏览:35
linuxread0 浏览:334
三轨直销系统源码 浏览:323
手机银行app怎么更新呢 浏览:249
单片机汇编学习 浏览:533
配1u服务器主机需要注意什么 浏览:40
算法工程师小李 浏览:635
程序员搬到哪里买房好 浏览:629
steam测试亚洲服务器怎么切换 浏览:513
vc命令行编译工程 浏览:333
当贝市场解压步骤 浏览:460
哪里有卖安卓系统的app 浏览:474
河南省云服务器租赁云主机 浏览:757
基金app哪个好2021年 浏览:43
迷你电梯单片机 浏览:40
编译电脑 浏览:504
程序员进入网吧 浏览:249
cad图转换pdf 浏览:811
魔域单机版命令 浏览:490
ftp服务器需要开放什么端口 浏览:329