华为ensp stelnet

 

[Huawei]sys r8
[r8]int g0/0/0

[r8-GigabitEthernet0/0/0]ip ad            	
[r8-GigabitEthernet0/0/0]ip address 10.1.1.1 24
Jul 29 2024 20:55:35-08:00 r8 %%01IFNET/4/LINK_STATE(l)[1]:The line protocol IP 
on the interface GigabitEthernet0/0/0 has entered the UP state. 
[r8-GigabitEthernet0/0/0]
Jul 29 2024 20:57:56-08:00 r8 %%01IFPDT/4/IF_STATE(l)[2]:Interface GigabitEthern
et0/0/0 has turned into DOWN state.

<r8>sys
Enter system view, return user view with Ctrl+Z.
[r8]ssh cli	
[r8]ssh client first-time enable
[r8]stelnet 10.1.1.2
Please input the username:user-ssh
Trying 10.1.1.2 ...
Press CTRL+K to abort
Connected to 10.1.1.2 ...
The server is not authenticated. Continue to access it? (y/n)[n]:y
Jul 29 2024 21:03:35-08:00 r8 %%01SSH/4/CONTINUE_KEYEXCHANGE(l)[0]:The server ha
d not been authenticated in the process of exchanging keys. When deciding whethe
r to continue, the user chose Y. 
[r8]
Save the server's public key? (y/n)[n]:y
The server's public key will be saved with the name 10.1.1.2. Please wait...

Jul 29 2024 21:03:37-08:00 r8 %%01SSH/4/SAVE_PUBLICKEY(l)[1]:When deciding wheth
er to save the server's public key 10.1.1.2, the user chose Y. 
[r8]
Enter password:
Enter password:
<r10>
<Huawei>
Jul 29 2024 20:58:58-08:00 Huawei %%01IFPDT/4/IF_STATE(l)[0]:Interface GigabitEt
hernet0/0/0 has turned into UP state.
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip ad	

[Huawei-GigabitEthernet0/0/0]ip address 10.1.1.2 24
Jul 29 2024 20:59:15-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[1]:The line protocol
 IP on the interface GigabitEthernet0/0/0 has entered the UP state. 
[Huawei-GigabitEthernet0/0/0]

[Huawei-GigabitEthernet0/0/0]dis th
[V200R003C00]
#
interface GigabitEthernet0/0/0
 ip address 10.1.1.2 255.255.255.0 
#
return
[Huawei-GigabitEthernet0/0/0]q
[Huawei]stelnet server enab	
[Huawei]stelnet server enable 
Info: Succeeded in starting the STELNET server.
[Huawei]rsa local-key	
[Huawei]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]:
[Huawei]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...
.......++++++
...................++++++
.....................++++++++
.........................++++++++

[Huawei]aaa
[Huawei-aaa]q
[Huawei]sys r10
[r10]aaa
[r10-aaa]local-user user-ssh password cipher huawei
Info: Add a new user.
[r10-aaa]local-user user-ssh privilege level 2
[r10-aaa]local-user user-ssh service-ty	
[r10-aaa]local-user user-ssh service-type ssh
[r10-aaa]q
[r10]user-interface vty 0 4

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

[r10-ui-vty0-4]protocol inb	
[r10-ui-vty0-4]protocol inbound ssh
[r10-ui-vty0-4]q
[r10]ssh user userssh aut	
[r10]ssh user userssh authentication-type all
 Error: Username does not exist
[r10]ssh user user-ssh authentication-type all
 Authentication type setted, and will be in effect next time
[r10]q
<r10>
Jul 29 2024 21:03:37-08:00 r10 %%01SSH/4/SSH_FAIL(l)[2]:Failed to log in through
 SSH. (Ip=10.1.1.1, UserName=user-ssh, Times=16777216).
<r10>
Jul 29 2024 21:03:41-08:00 r10 %%01SSH/4/SSH_FAIL(l)[3]:Failed to log in through
 SSH. (Ip=10.1.1.1, UserName=user-ssh, Times=33554432).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值