设置ssh登录密码

一、实验拓扑图及搭建环境

二、win11还原新系统并开启虚拟机

三、配置R1(服务器)路由器的接口IP

<Huawei>
<Huawei>system-view 进入视图模式
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable		关闭消息控制台
Info: Information center is disabled.
[Huawei]sysname server				重命名为server
[server]interface g0/0/0				进入g0/0/0接口
[server-GigabitEthernet0/0/0]ip address 10.1.1.1 24		IP地址10.1.1.1 子网掩码24
[server-GigabitEthernet0/0/0]undo shutdown			关闭消息控制台
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[server-GigabitEthernet0/0/0]quit						退出
[server]
[server]interface g0/0/1				进入g0/0/1接口
[server-GigabitEthernet0/0/1]ip address 192.168.10.10 24 IP地址192.168.10.10 子网掩码24
[server-GigabitEthernet0/0/1]undo shutdown 关闭消息控制台
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[server-GigabitEthernet0/0/1]quit 					退出
[server]

四、配置R2(客户端)路由器的接口IP

The device is running!

<Huawei>system-view				进入视图模式	
Enter system view, return user view with Ctrl+Z.
[Huawei]undo info-center enable		关闭消息控制台
Info: Information center is disabled.
[Huawei]sysname client			重命名为client
[client]interface g0/0/0				进入g0/0/0接口
[client-GigabitEthernet0/0/0]ip address 10.1.1.2 24		IP地址10.1.1.2 子网掩码24
[client-GigabitEthernet0/0/0]undo shutdown			关闭消息控制台
Info: Interface GigabitEthernet0/0/0 is not shutdown.

五、用rsa加密算法生成本地的密钥对

[Server]rsa local-key-pair create 	用rsa加密算法生成本地的密钥对
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]:
Generating keys...
.......++++++++++++
............++++++++++++
.++++++++
.........................++++++++

六、服务器进入aaa模式,设置本地用户、密码及ssh的服务类型

[Server]aaa		进入aaa模式
[Server-aaa]local-user admin password cipher huawei@123 设置本地用户为admin,加密密码为huawei@123
[Server-aaa]local-user admin privilege level 3本地用户的安全级别为3
[Server-aaa]local-user admin service-type ssh  本地用户的服务类型为ssh
[Server-aaa]quit							退出
[Server]stelnet server enable				开启ssh的服务器,stelnet是ssh
Info: Succeeded in starting the STELNET server.

七、服务器配置远程登录接口

[Server]user-interface vty 0 4				进入远程登录接口
[Server-ui-vty0-4]authentication-mode aaa	认证模式aaa模式
[Server-ui-vty0-4]protocol inbound all		允许所有的输入协议
[Server-ui-vty0-4]quit						退出

八、客户端ssh远程访问服务器10.1.1.1

<Client>system-view							进入视图模式
Enter system view, return user view with Ctrl+Z.
[Client]ssh client first-time enable					开启ssh的客户端
[Client]stelnet 10.1.1.1							ssh远程访问10.1.1.1
Please input the username:admin					登陆的用户名:admin
Trying 10.1.1.1 ...
Press CTRL+K to abort
Connected to 10.1.1.1 ...
The server is not authenticated. Continue to access it? (y/n)[n]:y
Save the server's public key? (y/n)[n]:y
The server's public key will be saved with the name 10.1.1.1. Please wait...

Enter password:
<Server>

九、win11安装putty软件包

十、win11ping本地网关

十一、win11配置putty,主机名称设置为:192.168.10.10

十二、192.168.10.10 登录及ping 服务器、客户端

暂无评论

发送评论 编辑评论


				
|´・ω・)ノ
ヾ(≧∇≦*)ゝ
(☆ω☆)
(╯‵□′)╯︵┴─┴
 ̄﹃ ̄
(/ω\)
∠( ᐛ 」∠)_
(๑•̀ㅁ•́ฅ)
→_→
୧(๑•̀⌄•́๑)૭
٩(ˊᗜˋ*)و
(ノ°ο°)ノ
(´இ皿இ`)
⌇●﹏●⌇
(ฅ´ω`ฅ)
(╯°A°)╯︵○○○
φ( ̄∇ ̄o)
ヾ(´・ ・`。)ノ"
( ง ᵒ̌皿ᵒ̌)ง⁼³₌₃
(ó﹏ò。)
Σ(っ °Д °;)っ
( ,,´・ω・)ノ"(´っω・`。)
╮(╯▽╰)╭
o(*////▽////*)q
>﹏<
( ๑´•ω•) "(ㆆᴗㆆ)
😂
😀
😅
😊
🙂
🙃
😌
😍
😘
😜
😝
😏
😒
🙄
😳
😡
😔
😫
😱
😭
💩
👻
🙌
🖕
👍
👫
👬
👭
🌚
🌝
🙈
💊
😶
🙏
🍦
🍉
😣
Source: github.com/k4yt3x/flowerhd
颜文字
Emoji
小恐龙
花!
上一篇
下一篇