WindowsでリモートLinuxサーバーにファイルをアップロードする

1.ダウンロード
は、http://www.chiark.greenend.org.uk/~sgtatham/putty/download.htmlからpscpをダウンロードし、それをウィンドウのsystem32フォルダーに配置して、dosコマンドウィンドウに表示できるようにします。直接使用します。

2.
(1)Windows-Linuxを使用してファイルをアップロードします。

1)、スタート→実行→cmdでdosモードに入り、次のコマンドを入力します:pscp E:\ javaWP \ new.txt [email protected]:/ home / hollyfee

2)入力後、パスワードの入力を求められますLinuxサーバーでユーザーのログインパスワードを入力すると、ファイルE:\ javaWP \ new.txtがLinuxサーバーの/ home / hollyfeeディレクトリにアップロードされます。130.75.7.156は、リモートLinuxサーバーのIPです。

C:\ Users \ Administrator> pscp C:\ Users \ Administrator \ Desktop \ abab.rar [email protected]:/ www

[email protected]のパスワード:

1.txt | 9 kB | 9.5 kB /秒| ETA:00:00:00 | 100%

具体的な操作は次のとおりです。

C:\ Documents and Settings \ Administrator> pscp E:\ javaWP \ new.txt [email protected]:/ home / hollyfee

[email protected]のパスワード:

new.txt | 0 kB | 0.0 kB /秒| ETA:00:00:00 | 100%

C:\ Documents and Settings \ Administrator>

(2)Linux-Windowsダウンロードファイル:
1)、[スタート]→[ ファイル名を指定して実行]→[cmd]でdosモードに入り、次のコマンドを入力します:pscp [email protected]:/home/hollyfee/new.txt E:\ javaWP \ new_copy.txt

2)Enterキーを押すと、パスワードの入力を求めるプロンプトが表示され、パスワードを入力すると、ファイルがターゲットマシンの/ home / hollyfeeディレクトリにアップロードされます。

その中で:hollyfeeはLinuxのユーザー名、130.75.7.156はリモートLinuxホストのIPアドレス、/ home / hollyfee / new.txtはLinuxでのファイル、E:\ javaWP \ new_copy.txtはローカルに保存されたファイルです。

具体的な操作は次のとおりです。

C:\ Documents and Settings \ Administrator>

pscp [email protected]:/home/hollyfee/new.txt E:\ javaWP \ new11111.txt

[email protected]のパスワード:

new11111.txt | 0 kB | 0.0 kB /秒| ETA:00:00:00 | 100%

C:\ Documents and Settings \ Administrator>

(3)Linux-Linux転送ファイル:
scpファイルユーザー名@ hostIP:ファイルアドレスの例:scp abc.txt endall @ IP:/home/endall/abc.txt

元のリンク:http://www.linuxidc.com/Linux/2012-05/60966.html

元の記事を17件公開 Like1 Visits 819

おすすめ

転載: blog.csdn.net/weixin_45433031/article/details/104907748