← Connection guide

Transfer files to and from your mini with SFTP

Upload one file to your rented Mac or Ubuntu mini, download a copy and check it on your computer. Follow the same SFTP session in PowerShell or Terminal.

Before you start You’ll need the SFTP command from Workspace details and a small text file on your computer. Start with an empty practice folder so you can recognize the copy you bring back.

Screenshot walkthrough
Local terminal creates the practice folder and lists hello.txt. View full-size screenshot ↗
Make a file on your computer

Start in a practice folder you can find again. This terminal creates hello.txt with a short line inside.

These screenshots follow one file from an Ubuntu laptop to the Mac mini and back. The example hostname stands in for the address in your workspace.

Which computer gets the file?

Picture two open folders, one on your own computer and the other on the mini. SFTP copies files between them over an encrypted SSH connection. In this exercise you’ll upload hello.txt to the mini, then download a second copy with a different name. You can open both on your computer to see what made the round trip.

As you work, “local” refers to the computer in front of you and “remote” refers to the mini. A path such as ~/Downloads starts in your home folder, abbreviated ~. After the connection opens, type each command at the sftp> prompt and press Enter.

First time seeing a host fingerprint? Walk through your first SSH sign-in. →
  1. Start in a local folder you can find again

    Make a folder called mini-transfer in Downloads on your computer. Open a text editor and save a file named hello.txt inside it. One line of text you’ll recognize later is enough. Open PowerShell or Terminal to change to the folder where you saved it.

    In Windows Notepad, use File → Save As. On a Mac, TextEdit can save the file after you choose Format → Make Plain Text. Check the filename in the folder so you don’t end up looking for hello.txt when the editor saved hello.txt.txt.

    cd ~/Downloads/mini-transfer

    If you chose another location, use its actual path. Quote a path that contains spaces.

    See screenshots for this step
    Local terminal creates the practice folder and lists hello.txt. View full-size screenshot ↗
    Make a file on your computer

    Start in a practice folder you can find again. This terminal creates hello.txt with a short line inside.

  2. Open the SFTP session

    Open My minis, choose the rental, then open Workspace details. Under SFTP files, copy its command into the terminal where you opened the practice folder. It already includes your account and hostname. SFTP uses the same SSH host key and machine password as a terminal login. On a first connection, check the fingerprint before accepting the key.

    sftp you@animal.loginmini.com

    When you see sftp>, try the two commands below. The extra l in lpwd means local, so its output should end in your own mini-transfer folder. The next line, pwd, shows where you landed on the mini.

    lpwd
    pwd
    See screenshots for this step
    OpenSSH SFTP displays both working directories after a successful Mac login. View full-size screenshot ↗
    Check the local and remote paths

    Use the SFTP address from Workspace details and enter your machine password. At the sftp> prompt, lpwd shows the laptop folder and pwd shows your home on the Mac.

  3. Upload the file into a folder on the mini

    From the mini’s home directory, make a practice folder there as well. The first two lines below make and enter the remote folder. If you’ve already used that name on the mini, pick a fresh folder name for both lines to keep your earlier practice files.

    mkdir mini-transfer
    cd mini-transfer
    put hello.txt
    ls -l hello.txt

    put copies hello.txt from your current local folder. The final ls line asks the mini to show you the copy. Look for hello.txt with a size larger than zero.

    See screenshots for this step
    The SFTP transfer completes and a remote ls -l lists hello.txt. View full-size screenshot ↗
    Upload hello.txt

    Inside SFTP, make a practice folder on the Mac, enter it and run put hello.txt. The ls line shows the uploaded file on the remote disk.

  4. Download a copy and check the contents

    get hello.txt hello-from-mini.txt
    bye

    In the get command, hello-from-mini.txt names the copy to save on your computer. After bye brings you back to the local prompt, open that file in your practice folder. Can you see the line you wrote at the start?

    See screenshots for this step
    A successful SFTP download followed by the local terminal reading the new file. View full-size screenshot ↗
    Read the downloaded copy

    Run get hello.txt hello-from-mini.txt to save a separate copy. After bye, read that local file to check the round trip.

  5. Use the same connection in a graphical client

    If you prefer to drag files, choose SFTP when adding a connection in your file-transfer app. Copy the host and machine username from Workspace details. Use the port shown there, usually 22. Check the host key before entering your current machine password.

    Find mini-transfer on the remote side of the window. Try dragging your test file, following the WinSCP upload example on Windows or Cyberduck’s SFTP instructions. Before your rental ends, download the project files you want to keep.

    See screenshots for this step
    GNOME Files has an SFTP URL in its location bar. View full-size screenshot ↗
    Try a file manager

    In GNOME Files, press Ctrl+L and enter your SFTP address. Other file managers ask for the same host and username in a connection dialog.

Availability alerts

We'll let you know when a machine becomes available.

No reservation, no charge. Unsubscribe anytime.