LoginSignup
8
11

More than 5 years have passed since last update.

メモ:macからラズパイに簡単にファイル転送する方法(scp)

Posted at

はじめに

macからraspberry piにsshでリモート接続して開発している時に、
macのファイル(例えばサンプルコード)をラズパイに転送する方法です。

前提条件

インストールソフト:mac,ラズパイ共に不要

手順

(例)
送信元:macのダウンロードフォルダ内の”exsample.py”
送信先:ラズパイの test/exsamplesフォルダ

1)macのターミナルを起動

2)送信したいファイルのフォルダに移動

cd ~/Downloads
scp exsample.py pi@raspberrypi.local:test/examples

3)パスワードを聞かれるので、ラズパイのパスワードを入力

pi@raspberrypi.local's password: 

まとめ

FTPとかソフトを使わなくても、scpコマンドで転送で出来ます。

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