SSH and SCP connections over USB from Ubuntu to your Sailfish device

Jolla Care -

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.


USB connection

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.


SSH session

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. On 3.4.0 or later, there are two possible usernames, nemo and defaultuser.

ssh defaultuser@    ## Sailfish OS 3.4.0 or later
ssh nemo@

ssh nemo@ ## Sailfish OS 3.3.0 or earlier
## (can appear on recent OS versions, too)

Type your SSH password now.



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

2) Copy directory "Scripts" from Ubuntu to your phone, to directory "test":

scp  -r Scripts 

3) Copy file "journal.log" from your phone to Ubuntu (to the current directory):

scp ./

4) Copy all ".log" files from a phone directory ( /var/log) to Ubuntu (to "some other directory"):

scp*.log /some/other/directory


Have more questions? Submit a request
Powered by Zendesk