LoginSignup
5
3

More than 5 years have passed since last update.

有線LANケーブルと有線LANアダプターでMacからRaspberryPiにSSH接続する

Posted at

環境

Mac OS X El Capitan US環境
Raspberry Pi2 Raspbian Jessie
BUFFALO Giga USB3.0対応 有線LANアダプター LUA4-U3-AGT

インターネット共有設定

有線LANアダプターとLANケーブルを接続し、有線LANアダプター側をMacに、LANケーブル側をRaspberry Piに接続する。

Macの「System Preferences」 > 「Sharing」 を開き
InternetSharingにチェックを入れる
Screenshot 2016-09-08 17.41.52.png

Raspberry Piの電源を入れる。

IPアドレスの確認

Macに最初からインストールされている「Console」アプリを使って、接続したRaspberryPiに(DHCPサーバであるMacによって)自動的に割り振られたIPアドレスを確認する。
FILESのsystem.logを開いて、右上の検索窓に「OFFER」と入れると、DHCPアドレスを割り当てた時のログが出る。

Screenshot 2016-09-08 17.49.57.png

1番下の行に最新のメッセージが出ているので、今回の場合RaspberryPiのIPアドレスが「192.168.2.3」であることがわかる。

TerminalからSSH接続

あとはTerminalで通常と同じようにSSH接続するだけ。
$ssh pi@192.168.2.3

5
3
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
5
3