イントロダクション
SSHでの接続メモです。以下の手順でやります。
Introduction
how to connect RPi and Mac using ssh.
手順(How to)
SSHを有効にします。
$sudo raspi-config
1. ラズパイコンフィグを起動します。(execute "raspi-config")
2.Interfacing Optionsを選択(select one)
3.SSHを選択してOK(select SSH〜)
1. LANで接続する(connect LAN RPi and Mac) 2. ネットワークインターフェースを起動する(execute command) [/etc/network/interfaces] iface eth0 inet dhcp # command $ sudo ifup eth0 3. SSH接続コマンド実行 $ssh user_name@ip_address
接続する前にRPiのIPアドレスを確認します。(check RPi IP address)
$ifconfig eth0
ネットワークを起動した時にもIPの確認はできます。(you can see when ifup)
これでSSHの接続ができます。(you can connect)
そしてファイルの送信(And how to send file)
cd targetDir scp targetFile user_name@host(ip_address):/home/user_name/