Skip to content

How To Connect Via SSH

oznu edited this page Jun 3, 2022 · 12 revisions

SSH is enabled by default.

The default username is pi with password raspberry.

SSH is built into Linux distributions and Mac OS, and is an optional feature in Windows 10. For older Windows versions and mobile devices, third-party SSH clients are available.

You will need to know the IP address of your device to connect via SSH. See How To Find IP Address for instructions on how to do this.

See the following guides for using SSH with the OS on your computer or device:

You can also use the scp command to copy files from your local computer to your Homebridge Raspberry Pi over a secure ssh connection:

https://www.raspberrypi.org/documentation/computers/remote-access.html#using-secure-copy


If you encounter this error, it probably means you re-flashed your SD card since last connecting via SSH.

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
...
Host key for homebridge.local has changed and you have requested strict checking.
Host key verification failed.

To fix this problem, run the following command, replacing pi@homebridge.local with the exact username and host you are connecting to:

ssh-keygen -R homebridge.local