天天看點

sftp 在檔案傳輸中的作用

最近在開發過程中,發現傳輸大檔案的時候,發現ssh 傳輸檔案太慢,secuCRT 有sftp 的功能:

在secuCRT 右健就會有sftp

sftp  [email protected]

Connecting to 172.16.100.232...

[email protected]'s password:

sftp> ls

Desktop  vmware  

sftp> help

Available commands:

cd path                       Change remote directory to 'path'

lcd path                      Change local directory to 'path'

chgrp grp path                Change group of file 'path' to 'grp'

chmod mode path               Change permissions of file 'path' to 'mode'

chown own path                Change owner of file 'path' to 'own'

help                          Display this help text

get remote-path [local-path]  Download file

lls [ls-options [path]]       Display local directory listing

ln oldpath newpath            Symlink remote file

lmkdir path                   Create local directory

lpwd                          Print local working directory

ls [path]                     Display remote directory listing

lumask umask                  Set local umask to 'umask'

mkdir path                    Create remote directory

progress                      Toggle display of progress meter

put local-path [remote-path]  Upload file

pwd                           Display remote working directory

exit                          Quit sftp

quit                          Quit sftp

rename oldpath newpath        Rename remote file

rmdir path                    Remove remote directory

rm path                       Delete remote file

symlink oldpath newpath       Symlink remote file

version                       Show SFTP version

!command                      Execute 'command' in local shell

!                             Escape to local shell

?                             Synonym for help

sftp> quit

關于要上傳和下載下傳: sftp>put     sftp>get

關于sftp 的配置:可以參考一些文章

最近發現速度還是很慢,原因是網卡的速利太慢,要是千兆的就好了

繼續閱讀