9
11

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.

scpでファイル/フォルダの転送

Last updated at Posted at 2018-12-11

#やりたいこと
scpでファイルやフォルダの転送

scpssh + cp らしい

##sshconfig

Host [ホスト名]
  HostName     [IP]
  Port          22
  User         [ユーザー名]
  IdentityFile [キーペアのパス]

送る

scp -r [送りたいファイルorフォルダのパス] [ホスト名]:[持っていきたいとこのパス]

持ってくる

scp -r [ホスト名]:[持ってきたいファイルorフォルダのパス] [持ってきたい場所のパス]

備考

-r でフォルダもコピーできる。

権限がある場所やファイルしかコピーできない。

9
11
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
9
11

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?