Access your device with SCP

From anywhere, via the Yaler relay.

Prerequisites

A device running an SSH service. To set up your device, see getting started.

This tutorial is for Linux and Mac OS X terminal. Prefer a desktop app? Use FileZilla. On Windows, access your device with WinSCP.

Building YalerTunnel on Linux and Mac OS X

How to build YalerTunnel on the client computer in order to enable tunneling SCP.

  1. Make sure JDK6 (or later) is installed and your PATH environment variable contains the JDK's bin directory.
  2. Download and unzip the YalerTunnel Java source
    YalerTunnel.src.zip
  3. To build YalerTunnel, open a shell, go to the unzipped directory, and type
    $ javac YalerTunnel.java
  4. Done.

Using YalerTunnel and SCP on Linux and Mac OS X

How to run YalerTunnel on the client computer to enable SCP access to your device.

  1. To start YalerTunnel on a client computer, using your relay domain (e.g. gsiot-ffmq-ttd5), type
    $ java YalerTunnel client 127.0.0.1:10022 try.yaler.io:80 RELAY_DOMAIN
  2. Open a second shell, on the same client computer.
  3. To copy a file to your device, using the remote login, via the local YalerTunnel, type
    $ scp -P 10022 -o ServerAliveInterval=5 LOCAL_FILE root@localhost:REMOTE_PATH
  4. To get a file from your device, using the remote login, via the local YalerTunnel, type
    $ scp -P 10022 -o ServerAliveInterval=5 root@localhost:REMOTE_FILE LOCAL_PATH
  5. Done.


Troubleshooting

How to fix common issues.


Creative Commons License This work by Yaler GmbH is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.