Operation Manual – SSH
H3C S3610&S5510 Series Ethernet Switches
Chapter 2 SFTP Service
2-3
Follow these steps to specify a source IP address or interface for the SFTP client:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Specify a
source IPv4
address or
interface for the
SFTP client
sftp client source
{
ip
ip-address | interface
interface-type
interface-number }
Specify a
source IP
address or
interface for
the SFTP
client
Specify a
source IPv6
address or
interface for the
SFTP client
sftp client ipv6 source
{
ipv6 ipv6-address
|
interface interface-type
interface-number
}
Required
Use either command.
By default, an SFTP
client uses the interface
address specified by
the route of the device
to access the SFTP
server.
2.3.2 Establishing a Connection to the SFTP Server
This configuration task is to enable the SFTP client to establish a connection with the
remote SFTP server and enter SFTP client view.
Follow these steps to enable the SFTP client:
To do…
Use the command…
Remarks
Establish a
connection
to the
remote
IPv4 SFTP
server and
enter SFTP
client view
sftp
server
[
port-number
]
[
prefer-ctos-cipher
{
3des
|
aes128
|
des
} |
prefer-ctos-hmac
{
md5
|
md5-96
|
sha1
|
sha1-96
} |
prefer-kex
{
dh-group-exchange
|
dh-group1
|
dh-group14
} |
prefer-stoc-cipher
{
3des
|
aes128
|
des
} |
prefer-stoc-hmac
{
md5
|
md5-96
|
sha1
|
sha1-96
} ] *
Establish a
connection
to the
remote
SFTP
server and
enter SFTP
client view
Establish a
connection
to the
remote
IPv6 SFTP
server and
enter SFTP
client view
sftp ipv6
server
[
port-number
]
[
prefer-ctos-cipher
{
3des
|
aes128
|
des
} |
prefer-ctos-hmac
{
md5
|
md5-96
|
sha1
|
sha1-96
} |
prefer-kex
{
dh-group-exchange
|
dh-group1
|
dh-group14
} |
prefer-stoc-cipher
{
3des
|
aes128
|
des
} |
prefer-stoc-hmac
{
md5
|
md5-96
|
sha1
|
sha1-96
} ] *
Required
Use either
command in
user view.
2.3.3 Working with the SFTP Directories
SFTP directory operations include:
z
Changing or displaying the current working directory
z
Displaying files under a specified directory or the directory information