42
28

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.

raspberry pi 3でSSH接続できない?

Posted at

rasberry pi 3をセットアップし、SSH接続しようとしたがエラーとなる。

*OSイメージは以下を使用
  2016-11-25-raspbian-jessie-lite.zip

# ssh pi@172.31.10.104
ssh: connect to host 172.31.10.104 port 22: Connection refused

リリースノートを確認すると、11/25版で、SSHはデフォルト無効にされたらしい。

raspbianのリリースノート
http://downloads.raspberrypi.org/raspbian/release_notes.txt

2016-11-25:
  * SSH disabled by default; can be enabled by creating a file with name "ssh" in boot partition
    :

記載の手順のとおり、ブートパーティションに"ssh"というファイルを作成すると、

# mount /dev/sde1 /tmp/cf
# touch /tmp/cf/ssh

SSH接続ができるようになった!!

# ssh pi@172.31.10.104
Could not create directory '/root/.ssh'.
The authenticity of host '172.31.10.104 (172.31.10.104)' can't be established.
RSA key fingerprint is fb:0b:9a:06:f1:6d:24:b8:56:1c:ac:1a:37:d4:f1:4f.
Are you sure you want to continue connecting (yes/no)?
42
28
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
42
28

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?