發(fā)布時間:2015-10-14 06: 24: 23
SFTP是基于SSH的文件傳輸協(xié)議,與ZMODEM相比具有更加安全且更為快速的文件傳輸功能。您可以使用sftp的命令從本地Xshell提示轉(zhuǎn)移文件。
sftp [user@]host [port]
Example of command line)
Xshell> sftp myhostname
Xshell> sftp myusername@myhostname
Xshell> sftp myusername@myhostname 12345
sftp:/home/myusername> help |
|
bye |
finish your SFTP session |
cd |
change your remote working directory |
clear |
clear screen |
exit |
finish your SFTP session |
explore |
explore your local directory |
get |
download a file from the server to your local machine |
help |
give help |
lcd |
change and/or print local working directory |
lls |
list contents of a local directory |
lpwd |
print your local working directory |
ls |
list contents of a remote directory |
mkdir |
create a directory on the remote server |
mv |
move or rename a file on the remote server |
put |
upload a file from your local machine to the server |
pwd |
print your remote working directory |
quit |
finish your SFTP session |
rename |
move or rename a file on the remote server |
rm |
delete a file |
rmdir |
remove a directory on the remote server |
sftp:/home/myusername> |
1)使用的cd命令搬到一個你想上傳文件的目錄。 (服務器)
2)使用“液晶”命令搬到一個目錄文件,將上傳、保存。 (窗口)
3)檢查文件名用“get”命令。
4)開始上傳用“put”命令。
如果已經(jīng)安裝Xftp, Xshell可以創(chuàng)建一個Xftp會話,可以更容易和更安全的完成文件傳輸。 至于如何使用請參考: 如何在xshell當前會話中打開xftp?
展開閱讀全文
︾