LoginSignup
116
103

More than 5 years have passed since last update.

scpコマンドでアップロード&ダウンロード

Last updated at Posted at 2014-06-13

(例) リモートホストのポート番号22でindex.html を転送する

  • ローカルホスト→リモートホストへ転送(アップロード)
// ローカルホストで実行
$ scp -P 22 index.html admin@domain.com:/home/admin/htdocs/
  • リモートホスト→ローカルホストへ転送(ダウンロード)
// ローカルホストで実行
$ scp -P 22 admin@domain.com:/home/admin/htdocs/index.html ./

116
103
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
116
103