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...
1.
Enter system view.
2.
Specify a
source IP
address or
interface
for the SFTP
client.
Establishing a connection to the SFTP server
To establish a connection to the remote SFTP server and enter SFTP client view:
To do...
Establish a
connection to
the remote SFTP
server and
enter SFTP
client view
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
•
Use the command...
system-view
Specify a
source IPv4
sftp client source { ip ip-address |
address or
interface interface-type interface-
interface for the
number }
SFTP client
Specify a
source IPv6
sftp client ipv6 source { ipv6 ipv6-
address or
address | interface interface-type
interface for the
interface-number }
SFTP client
Use the command...
sftp server [ port-number ] [ identity-key { dsa
Establish a
| rsa } | prefer-ctos-cipher { 3des | aes128 |
connection to
des } | prefer-ctos-hmac { md5 | md5-96 |
the remote IPv4
sha1 | sha1-96 } | prefer-kex { dh-group-
SFTP server
exchange | dh-group1 | dh-group14 } |
and enter SFTP
prefer-stoc-cipher { 3des | aes128 | des } |
client view
prefer-stoc-hmac { md5 | md5-96 | sha1 |
sha1-96 } ] *
sftp ipv6 server [ port-number ] [ identity-key {
Establish a
dsa | rsa } | prefer-ctos-cipher { 3des |
connection to
aes128 | des } | prefer-ctos-hmac { md5 |
the remote IPv6
md5-96 | sha1 | sha1-96 } | prefer-kex { dh-
SFTP server
group-exchange | dh-group1 | dh-group14 }
and enter SFTP
| prefer-stoc-cipher { 3des | aes128 | des } |
client view
prefer-stoc-hmac { md5 | md5-96 | sha1 |
sha1-96 } ] *
191
Remarks
—
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.
Remarks
Required.
Use either command
in user view.