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?

ローカルPCからRemote SSHにファイルをアップロードする方法

0
Last updated at Posted at 2026-09-22

ローカルPC内のthis.ipynbをRemote SSHのとあるフォルダにアップロードしたいとします.

  1. まず,VScodeなどでターミナルを開きます.

  2. 次に,SSHの各項目を確認します.

項目 値
SSH接続名 research-server
リモートホスト 192.168.10.25
ユーザ名 tanaka
ポート 22

あとは,ターミナルで,scpコマンドを用いて以下のように実行するだけです!

scp analysis/this.ipynb research-server:/home/tanaka/work

フォルダをアップロードする場合は,以下のように-rを加えます.

scp -r my-project research-server:/home/tanaka/work

SSHの方ではなく,ローカルのターミナルです!お間違えないように!

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?