Sftp Configuration Example - H3C S5100-SI Operation Manual

Ethernet switches
Hide thumbs Also See for H3C S5100-SI:
Table of Contents

Advertisement

If you specify to authenticate a client through public key on the server, the client needs to read the local
private key when logging in to the SFTP server. Since both RSA and DSA are available for public key
authentication, you need to use the identity-key key word to specify the algorithms to get correct local
private key; otherwise you will fail to log in. For details, see SSH Operation Manual.
Specifying the source interface or source IP address for an SFTP client
You can specify the source interface or source IP address for a switch acting as an FTP client, so that it
can connect to a remote SFTP server.
Follow these steps to specify the source interface or source IP address for an SFTP client:
To do...
Enter system view
Specify an interface as the
source interface of the
specified SFTP client
Specify an IP address as the
source IP address of the
specified SFTP client
Display the source IP address
used by the current SFTP client

SFTP Configuration Example

Network requirements
As shown in 0, establish an SSH connection between the SFTP client (switch A) and the SFTP server
(switch B). Log in to switch B through switch A to manage and transmit files. An SFTP user with the
username client001 and password abc exists on the SFTP server.
Network diagram
Figure 1-6 Network diagram for SFTP configuration
Configuration procedure
1)
Configure the SFTP server (switch B)
# Create key pairs.
<Sysname> system-view
[Sysname] public-key local create rsa
Use the command...
system-view
sftp source-interface
interface-type interface-number
sftp source-ip ip-address
display sftp source-ip
1-17
Remarks
Use either command
Not specified by default.
Optional
Available in any view

Advertisement

Table of Contents
loading

This manual is also suitable for:

H3c s5100-ei

Table of Contents