Skip to content

balena-io-experimental/ssh-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

Node.js port for the existing resin-ssh project.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •