The following instructions apply to the recent Ubuntu versions (14.04 and later).
This help article is for Linux/Ubuntu -- if you use a Windows computer then read this article.
Make sure you have the Developer mode enabled on your Sailfish device. If not, see this article.
Check that you have the SSH password set in "Settings > Developer tools > Remote connection".
Connect a USB cable between you PC and your Sailfish device. At the moment of connection, choose "Developer mode" at the device display.
Open the Terminal on Ubuntu. Create SSH connection with the following command - note the different username depending on the Sailfish OS version in your phone:
ssh email@example.com ## Sailfish OS 3.4.0 or later
ssh firstname.lastname@example.org ## Sailfish OS 3.3.0 or earlier
## (can appear on recent OS versions, too)
Type your SSH password now.
If a warning about "Remote host identification has changed" appears then give the command
ssh-keygen -f "/home/xxxxxxxxx/.ssh/known_hosts" -R 192.168.2.15
(where xxxxxxxxx is your Ubuntu username)
ssh email@example.com # Sailfish OS 3.4.0 or later
ssh firstname.lastname@example.org # Sailfish OS 3.3.0 or earlier
If the connection attempt fails, disconnect the phone from the PC. Restart the phone (consider restarting the PC, too). Try again.
Using SCP over USB
The SCP connection allows you to transfer files between your phone and your Ubuntu computer.
Prepare the connection in the same way as in steps 1 to 4 above. Then type the commands to copy files between the two devices.
In all of the examples below, replace the string "UUUU" with the correct username:
- defaultuser (in case of Sailfish OS 3.4.0 or later)
- nemo (in case of 3.3.0 or earlier)
1) Copy file "User-manual.txt" from Ubuntu to your phone, to the home directory:
scp User-manual.txt UUUU@xxx.yyy.aaa.bbb:/home/UUUU
2) Copy directory "Scripts" from Ubuntu to your phone, to directory "test":
scp -r Scripts UUUU@xxx.yyy.aaa.bbb:/home/UUUU/test
3) Copy file "journal.log" from your phone to Ubuntu (to the current directory):
4) Copy all ".log" files from a phone directory ( /var/log) to Ubuntu (to "some other directory"):
scp UUUU@xxx.yyy.aaa.bbb:/var/log/*.log /some/other/directory