3
2

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で~/.ssh/configに登録しているサーバーにアップロードする

Posted at

// この記事は、 note に投稿した記事の再掲です。

scpでファイルのアップロードをしてみたのでそのメモです

// アップロードするファイルを圧縮
$ cd /my/project/directory
$ zip -r filename.zip /my/project/圧縮するディレクトリ

// scpで送信
$ scp /圧縮したzipがある/ディレクトリ/filename.zip ホスト:/アップロード先の/ディレクトリ名

// 送信したzipを展開
$ unzip filename.zip
$ cd filename.zip

// パーミッションを変更
$ chmod 705 *

#ダウンロードするとき

$ scp ホスト:/ダウンロードする/ファイル.txt /ダウンロード先/ディレクトリ
3
2
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
3
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?