191
Configuring the switch as an SFTP client
Specifying a source IP address or interface for the SFTP client
You can configure a client to use only a specified source IP address or interface to access the SFTP
server, enhancing the service manageability.
To specify a source IP address or interface for the SFTP client:
To do…
Use the command…
Remarks
1.
Enter system view.
system-view
—
2.
Specify a
source IP
address or
interface
for the SFTP
client.
Specify a
source IPv4
address or
interface for the
SFTP client
sftp client source
{
ip
ip-address
|
interface
interface-type
interface-
number
}
Required.
Use either command.
By default, an SFTP client uses the
IP address of the interface
specified by the route of the
switch to access the SFTP server.
Specify a
source IPv6
address or
interface for the
SFTP client
sftp client ipv6 source
{
ipv6
ipv6-
address
|
interface
interface-type
interface-number
}
Establishing a connection to the SFTP server
To establish a connection to the remote SFTP server and enter SFTP client view:
To do…
Use the command…
Remarks
Establish a
connection to
the remote SFTP
server and
enter SFTP
client view
Establish a
connection to
the remote IPv4
SFTP server
and enter SFTP
client view
sftp
server
[
port-number
]
[
identity-key
{
dsa
|
rsa
} |
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.
Establish a
connection to
the remote IPv6
SFTP server
and enter SFTP
client view
sftp ipv6
server
[
port-number
] [
identity-key
{
dsa
|
rsa
} |
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
} ] *
Working with SFTP directories
SFTP directory operations include the following:
•
Changing or displaying the current working directory
•
Displaying files under a directory or the directory information