4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

raspi zero WをUSBケーブルからsshする(Windows10)

Posted at

raspi zero WをUSBケーブルからsshできると便利なのでやってみました。

Qiitaに同様の記事があるが、windows10に対応していなかったり、ドライバのリンクが切れていたりして調べるのに時間がかかったのでここにまとめます。
qiita(.md)に慣れていないのでベタ打ちですがご容赦を^^)

手順:
①公式ページからraspbianのイメージをダウンロード。

②8GB以上のSDカードにrasbianを書き込む(windowsはwin32diskimager、macはapplepi等を使って)

③sdカードをPCにつなぎ、bootパーティションのファイル(config.txt、cmdline.txt)を変更

④PCとUSB接続してraspiを立ち上げ、デバイスマネージャーでCOMport等になっているraspiにUSB Ethernet/RNDIS Gadgetのドライバをインストールする。

ここまでは、
https://qiita.com/marron-akanishi/items/2ce4ae07c71dc8358093
を参考にしてください。

※記事のドライバのリンクは切れているので以下のドライバを入れる。
http://www.catalog.update.microsoft.com/Search.aspx?q=Acer%20Incorporated.%20-%20Other%20hardware%20-%20USB%20Ethernet%2FRNDIS%20Gadget
「Acer Incorporated. – Other hardware – USB Ethernet/RNDIS Gadget 」の「Windows 7,Windows 8,Windows 8.1 and later drivers」向けになっている物をダウンロードして試してみてください。
参考:https://www.raspi.jp/2016/07/pizero-usb-otg/

⑤ Bonjour Print Services をインストールする。
(ネットワークの名前解決するため)
https://support.apple.com/kb/DL999?locale=ja_JP&viewlocale=ja_JP

⑥mDNS用のポート(UDP5353)を開放します。
https://qiita.com/saitetu/items/8412cfb274a3d85997fc

⑦インターネット共有の設定を行う
mac:
https://www.raspi.jp/2016/07/pizero-usb-otg/

win:
http://srlt.blog.jp/archives/10000356.html

⑧sshで接続する
win:teraterm
mac:コンソール
でssh pi@raspberrypi.localを行う

⑨【参考】複数台のインストール
sshのホスト情報が違うので接続できなくなった場合は、以下のようにする

SSH接続エラー回避方法:.ssh/known_hostsから特定のホストを削除する/削除しないで対処する3つの方法
https://qiita.com/grgrjnjn/items/8ca33b64ea0406e12938

参考URL:
Raspberry Pi zero WをWindows10からUSBでssh接続する(iTunes不要)
https://qiita.com/saitetu/items/8412cfb274a3d85997fc

USB Ethernet/RNDIS Gadget
https://www.raspi.jp/2016/07/pizero-usb-otg/

① Bonjour Print Services をインストールする。
(ネットワークの名前解決するため)
https://support.apple.com/kb/DL999?locale=ja_JP&viewlocale=ja_JP
②windows10のドライバをダウンロード
「Acer Incorporated. – Other hardware – USB Ethernet/RNDIS Gadget 」の「Windows 7,Windows 8,Windows 8.1 and later drivers」向けになっている物をダウンロード
http://www.catalog.update.microsoft.com/Search.aspx?q=Acer%20Incorporated.%20-%20Other%20hardware%20-%20USB%20Ethernet%2FRNDIS%20Gadget

SSH接続エラー回避方法:.ssh/known_hostsから特定のホストを削除する/削除しないで対処する3つの方法
https://qiita.com/grgrjnjn/items/8ca33b64ea0406e12938

4
2
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
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?