SSH into a resin.io container using public-key auth
-
Clone repo locally:
$ git clone https://github.com/konradko/resin-openssh-passwordless
-
Add resin.io remote:
$ git remote add resin username@git.resin.io:username/project.git
-
Set the
CLIENT_PUBKEY
environment variable to your public key in resin.io dashboard, on OSX you can copy it with:$ cat ~/.ssh/id_rsa.pub | pbcopy
-
Deploy the application:
$ make deploy
SSH into a container (you can get the device local IP address via resin.io dashboard or using resin-cli), e.g.:
$ ./ssh.sh 192.168.1.15