Link Search Menu Expand Document

SSH and SCP (Mac)

Currently, it is not possible to browse the contents of your Sailfish phone over a USB connection. This is due to limitations in Mac OS X’s support for the Media Transfer Protocol (MTP). It is possible to browse the contents of your phone by forming an SSH connection over WLAN, however. Here are the instructions for setting this up.

Prerequisites

You must unlock the device lock and the encryption of your Sailfish phone before you can make an SSH connection to the phone. In other words, the phone must be on and unlocked. See these articles: device lock and encryption.

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”.

SSH session

Open the Terminal on your Mac. Note that there are two different usernames depending on the Sailfish OS version on your phone:  ‘defaultuser’ and ‘nemo’. Only the correct one works. You can check it from the prompt of the Terminal app of the phone or with the command below (before getting root rights).

echo $USER

It replies either nemo or defaultuser. If you should get root then do exit first and try again.

Create the SSH connection with the correct command (matching your username).

On your Mac OS X computer

1) Acquire the app called Cyberduck for Mac.

2) Download the file and decompress it. Start “Cyberduck 2”.

3) Click on “Open connection” in the top left corner.

4) Click on the text “FTP (File Transfer Protocol)”, and change it to “SFTP (SSH File Transfer Protocol)”

5) Check the WLAN IP address of your Sailfish phone in “Settings > System > Developer tools”. Both your computer and your Sailfish OS device must be connected to the same WLAN network (SSID).  Type the same WLAN IP address on your Mac into the “Server” field.

  • WLAN IP WLAN IP address of Sailfish phone

SSH session

6) Type the correct username – either defaultuser or nemo

7) The password is the SSH password you defined on the phone at  “Settings > Developer tools > Remote connection”.

8) Press “Connect” and wait a moment.

You should be able to see the contents of your Sailfish phone in Cyberduck now. Transferring files to and from your phone should now be possible in Cyberduck. 

Further reading:

Moving files between Sailfish and Mac