0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

EC2とlocalPC間のファイル、ディレクトリのコピー

Posted at

EC2とlocalPC間のファイル、ディレクトリのコピー

情報科学屋さんを目指す人のメモ(FC2ブログ版)

C:\Program Files\PuTTY¥pscp.exe を使う 
pscp.exeはPuTTYに含まれる
Pageantに共通キーをいれていないとできないかも

LinuxからWindowsへコピー

Linuxのホームディレクトリにあるファイルtestを Windowsのカレントディレクトリへコピーします。

pscp.exe ec2-user@(IP):test .

ローカルPCのUSER NAMEにコピーされる

Linuxのホームディレクトリにあるファイルtestを Windowsのダウンロードディレクトリへコピーします。

pscp.exe ec2-user@(IP):test C:\Users\10001176313\Downloads

Linuxのhelloディレクトリ内のarray.goをダウンロードディレクトリにコピーします。

pscp.exe ec2-user@(IP):hello/array.go C:\Users\(user)\Downloads

*** LinuxのexecディレクトリからWindowsへディレクトリ丸ごとコピー***

pscp.exe -r ec2-user@(IP):exec C:\Users\(user)\Downloads

WindowsからLinuxへファイルを1つコピー

Windowsのダウンロードディレクトリのtest.txtをLinuxのホームディレクトリにコピー

pscp.exe C:\Users\10001176313\Downloads\test.txt ec2-user@3.91.104.214:

WindowsのダウンロードディレクトリのファイルをLinuxの./helloディレクトリにコピー

pscp.exe -r C:\Users\10001176313\Downloads\test-dir ec2-user@3.91.104.214:./hello
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?