Skip to content

Secure connection to pigpiod

Guy McSwain edited this page Jun 9, 2020 · 1 revision

Prerequisites

  • Client's SSH authorized key on remote pigpiod host
  • pigpiod running with -l option (allow only localhost connection)

Command line

ssh -L 8888:localhost:8888 pi@pigpiod_hostname \  
-i /path/to/ssh/identity_file \  
-N -f

option descriptions

  • -L Sets up local port forwarding. A socket listening on this host's port 8888 establishes a connection to the remote sshd pi@pigpiod_hostname requesting a connection to the destination localhost:8888.
  • -i This host's private key.
  • -N Don't run a command. (By default ssh opens a terminal or runs a command.)
  • -f Run in background.

Run pigpio command on remote host

pigs hwver

Clone this wiki locally