Skip to content
Node.js port for the existing resin-ssh project.
JavaScript Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
img documentation Feb 23, 2015
.gitignore Initial commit. Oct 23, 2014
Dockerfile.template Update to use balenalib Apr 23, 2019
README.md Update to use balenalib Apr 23, 2019
hello.js
package.json Update to use balenalib Apr 23, 2019
start.sh Update to use balenalib Apr 23, 2019

README.md

balena-ssh

This is a node.js port of the balena-ssh-python. It's essentially a balena container that runs dropbear on boot which allows for ssh access.

NOTE: This container enables SSH access as root with a PASSWORD stored in plain text - Do not use in production without modifications.

SSH into you're device.

Add an environment variable called PASSWD with the value to set as root password.

creating envar

Get your device's IP address from the balena dashboard. Then run

$ ssh root@<YOUR-DEVICE'S-IP>

The code you just pushed is kept in the app directory.

$ cd /usr/src/app

At after pushing you may encounter and re-sshing back into the device you may encounter this error message as the host key changes when an update occurs on the device.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.

To get around this remove the key.

$ ssh-keygen -R <YOUR-DEVICE'S-IP>

It will then work as expected

$ ssh root@<YOUR-DEVICE'S-IP>
You can’t perform that action at this time.