Basic configurations on an sftp client – H3C Technologies H3C S3600 Series Switches User Manual
Page 963
1-16
z
Currently an H3C S3600 series Ethernet switch operating as an SFTP server supports the
connection of only one SFTP user. When multiple users attempt to log in to the SFTP server or
multiple connections are enabled on a client, only the first user can log in to the SFTP user. The
subsequent connection will fail.
z
When you upload a large file through WINSCP, if a file with the same name exists on the server,
you are recommended to set the packet timeout time to over 600 seconds, thus to prevent the
client from failing to respond to device packets due to timeout. Similarly, when you delete a large
file from the server, you are recommended to set the client packet timeout time to over 600
seconds.
SFTP Configuration: A Switch Operating as an SFTP Client
Basic configurations on an SFTP client
By default a switch can operate as an SFTP client. In this case you can connect the switch to the SFTP
server to perform SFTP-related operations (such as creating/removing a directory) by executing
commands on the switch.
Follow these steps to perform basic configurations on an SFTP client:
To do…
Use the command…
Remarks
Enter system view
system-view
—
Enter SFTP client view
sftp { host-ip | host-name }
[ port-num ] [ identity-key { dsa
| rsa } | prefer_kex
{ dh_group1 |
dh_exchange_group } |
prefer_ctos_cipher { 3des |
des | aes128 } |
prefer_stoc_cipher { 3des |
des | aes128 } |
prefer_ctos_hmac { sha1 |
sha1_96 | md5 | md5_96 } |
prefer_stoc_hmac { sha1 |
sha1_96 | md5 | md5_96 } ] *
Required
Change the working directory
on the remote SFTP server
cd pathname
Change the working directory
to be the parent directory
cdup
Display the working directory
on the SFTP server
pwd
Create a directory on the
remote SFTP server
mkdir pathname
Remove a directory on the
remote SFTP server
rmdir pathname
Optional
delete remotefile
Delete a specified file
remove remote-file
Optional
Both commands have the same
effect.