⏱
2 mins remaining
Ssh! No Ports
SSH to a remote linux device without it having any open ports
Steps in this module
Set up the Client
Run the client on your machine.
./sshnp --from <@your_manager_atsign> --to <@your_devices_atsign> --host <example.com> -l --local-port --device <iot_device_name>
(Or run the dart file via dart run
)
dart run bin/sshnp.dart <args|flags>
See the options & flags available for the client binary:
Argument | Abbreviation | Mandatory | Description | Default |
---|---|---|---|---|
–key-file | -k | false | Sending atSign’s atKeys file if not in ~/.atsign/keys/ | |
–from | -f | true | Sending atSign | |
–to | -t | true | Send a notification to this atSign | |
–device | -d | false | Send a notification to this device | “default” |
–host | -h | true | FQDN Hostname e.g. example.com or IP address to connect back to | |
–port | -p | false | TCP port to connect back to | 22 |
–local-port | -l | false | Reverse ssh port to listen on, on your local machine | 2222 |
–ssh-public-key | -s | false | Public key file from ~/.ssh to be appended to authorized_hosts on the remote device | false |
Flags | Abbreviation | Description |
---|---|---|
–[no-]verbose | -v | More logging |