XShell工具sftp使用

2022-03-08 09:07:40 字數 1405 閱讀 2325

關於如何在linux與linux,以及linux與windows之前傳輸檔案,如下

sftp:/home/test> 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/test>

這裡主要是介紹windows與linux檔案傳輸,其中比較常用的命令如下:

1、get

先通過lcd切換到本地那個目錄下,然後通過get file

>> lcd d:\             //表示切換到本地的d盤下

2、put

是將本地的檔案上傳到遠端伺服器上,如下:

>>  put        //在windows下彈出選擇檔案的視窗

3、lcd

先通過lcd切換到本地那個目錄下

>> lcd d:\             //表示切換到本地的d盤下

4、lls

顯示當前目錄下的所有檔案

5、pwd

顯示當前目錄

XShell工具sftp使用

關於如何在linux與linux,以及linux與windows之前傳輸檔案,如下 sftp home test help bye finish your sftp session cd change your remote working directory clear clear screen ...

Xshell如何使用SFTP轉移檔案?

sftp是基於ssh的檔案傳輸協議,與zmodem既具有更安全又更快速的檔案傳輸功能。您可以使用sftp的命令從本地xshell提示轉移檔案。sftp 使用者 主機 埠 命令列示例 xshell sftp myhostname xshell sftp myusername myhostname xs...

xshell下利用SFTP傳輸檔案

sftp是基於ssh的檔案傳輸協議,與zmodem相比具有更加安全且更為快速的檔案傳輸功能。如何利用sftp接收檔案 1.在本地提示以sftp命令登陸擬要接收檔案的主機。xshell sftp hostname 2.在sftp提示下以get命令接收需要的檔案。sftp home user21 get...