![Huawei AR2200 Series Configuration Manual Download Page 177](http://html.mh-extra.com/html/huawei/ar2200-series/ar2200-series_configuration-manual_169296177.webp)
0240
BFF35E4B C61BD786 F907B5DE 7D6770C3 E5FD17AB
203C8FCB BBC8FDF2 F7CB674E 519E8419 0F6B97A8
EA91FC4B B9E18836 5E74BFD5 4C687767 A89C6B43
1D7E3E1B
0203
010001
=====================================================
Time of Key pair created: 2007-12-29 16:20:05+08:00
Key name: Server
Key type: RSA encryption Key
=====================================================
Key code:
3067
0260
BCFAC085 49A2E70E 1284F901 937D7B63 D7A077AB
D2797280 4BCA86C0 4CD18B70 5DFAC9D3 9A3F3E74
9B2AF4CB 69FA6483 E87DA590 7B47721A 16391E27
1C76ABAB 743C568B 1B35EC7A 8572A096 BCA9DF0E
BC89D3DB 5A83698C 9063DB39 A279DD89
0203
010001
[client002]
# Send the RSA public key of the client to the server.
[SSH Server]
rsa peer-public-key RsaKey001
Enter "RSA public key" view, return system view with "peer-public-key end".
NOTE: The number of the bits of public key must be between 769 and 2048.
[SSH Server-rsa-public-key]
public-key-code begin
Enter "RSA key code" view, return last view with "public-key-code end".
[SSH Server-rsa-key-code]
3047
[SSH Server-rsa-key-code]
0240
[SSH Server-rsa-key-code]
BFF35E4B C61BD786 F907B5DE 7D6770C3 E5FD17AB
[SSH Server-rsa-key-code]
203C8FCB BBC8FDF2 F7CB674E 519E8419 0F6B97A8
[SSH Server-rsa-key-code]
EA91FC4B B9E18836 5E74BFD5 4C687767 A89C6B43
[SSH Server-rsa-key-code]
1D7E3E1B
[SSH Server-rsa-key-code]
0203
[SSH Server-rsa-key-code]
010001
[SSH Server-rsa-key-code]
public-key-code end
[SSH Server-rsa-public-key]
peer-public-key end
Step 4
Bind the RSA public key of the SSH client to Client002.
[SSH Server]
ssh user client002 assign rsa-key RsaKey001
Step 5
Enable the SFTP service on the SSH server
# Enable the SFTP service.
[SSH Server]
sftp server enable
Step 6
Connect to the SSH server.
# Enable initial authentication on the SSH client if it logs in for the first time.
<Huawei>
system-view
[Huawei]
sysname client001
[client001]
ssh client first-time enable
<Huawei>
system-view
[Huawei]
sysname client002
[client002]
ssh client first-time enable
# Log in to the SSH server from Client001 in password authentication mode.
<client001>
system-view
[client001]
sftp 10.164.39.222
Please input the username:client001
Trying 10.164.39.222 ...
Press CTRL+K to abort
Huawei AR2200 Series Enterprise Routers
Configuration Guide - Basic Configuration
8 Accessing Another Device
Issue 02 (2011-10-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
166