remot3.it offers a variety of ways to connect to your remote device using SSH. You can use a standalone SSH client application such as PuTTY, or command-line scripts, depending on your Operating System.
Summary: These instructions will connect a Mac OS X or Linux computer using a terminal window, to a remot3.it-enabled SSH service.
- Devices: All remot3.it-compatible devices running an SSH server.
- Clients: Mac OS/X terminal and Linux console or terminal window.
Connect to a Weaved Enabled SSH Device
Sign In to your remot3.it account, locate your Device in the on the Manage Devices page, and click on the device name.
You will then see a window showing the services available on that device.
Click on the service you wish to connect to, then click on "Confirm".
Web services will open directly in the browser. For all other types of services, you will see a dialog with connection details.
Double-click on the word LOGIN in the dialog box. This highlights the word.
When you type in your username, it will replace the word LOGIN. The example shown below is a Wandboard running Ubuntu Linux, and the username is “ubuntu”. For Raspberry Pi running the Raspbian OS, the username is “pi”.
Now copy and paste this entire command line from the connection dialog that appears in your browser to your Mac or Linux terminal window and press “Enter”.
This initiates the login. You will probably see the following security message (or something similar), which is entirely normal. Type “yes” to accept the new SSH key into your key cache.
Enter your password when prompted.
Now you are logged in and can run commands as you normally would.
Transfer files to or from a remot3.it Enabled SSH Device using SCP on the command line
Now you’ll need to type the scp command line using the Hostname and Port value provided. For the purpose of this example, suppose you are copying the file /home/user/info.txt to the connected device in the location /home/pi/info.txt. The correct format for the command line is:
scp -P 38400 /home/user/info.txt firstname.lastname@example.org:/home/pi/info.txt
Don’t copy this command line verbatim. Substitute the Hostname and Port provided in the SSH connection dialog, and the username on the remote system (NOT your remot3.it account name). Enter your device’s password when prompted.
You may get a “permission denied” error if the remote user does not have write access to the remote folder. If you need to copy a file to a write-protected remote folder, you’ll need to first copy it to a write-enabled remote folder, then login using SSH, finally using “sudo mv” to move the file to its final destination.
For more details about using the scp command, please visit http://www.hypexr.org/linux_scp_help.php .