Skip to content

Commit

Permalink
Added SSH chapter to README
Browse files Browse the repository at this point in the history
  • Loading branch information
jlipponen committed Jan 7, 2023
1 parent 71f9817 commit 58d48cb
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,29 @@ List your RuuviTag devices' MAC addressess in [ruuvi.yaml](./recipes-ruuvigate/s

Alternatively, you can mount the SD card's `root` filesystem and edit \
`etc/ruuvigate/ruuvi.yaml`

## Enable SSH connectivity
You can connect to your RuuviGate with SSH. By default, Public Key Authentication is used. First, generate a public and private key pair with `ssh-keygen`. For example:

```
~/.ssh$ ssh-keygen -t rsa -f ruuvigate
```

then copy the _ruuvigate.pub_ **public key** content to RuuviGate's [authorized_keys](./recipes-connectivity/openssh/files/authorized_keys) file. Futhermore, create the following entry to your SSH client's config file:

```
Host ruuvigate
HostName <IP-of-your-RuuviGate>
User root
Port 13666
IdentityFile /home/<your-username>/.ssh/ruuvigate.pub
```

Opening SSH connection should now work with:

```
$ ssh ruuvigate
```

Alternatively, you can mount the SD card's `root` filesystem and edit \
`home/root/.ssh/authorized_keys`

0 comments on commit 58d48cb

Please sign in to comment.