Getting started

Install, then copy.

Farwing is free for any use, including commercial use. There is no limit on how many copies run at once. Without a license file, copies on one machine share 1 Gbit/s in total, even if --max-rate asks for more. A licensed Farwing Server at the far end sets its own speed. See free limits. Two commands get you a first copy on a machine you can reach with SSH. No SSH? See Copying without SSH. Prefer a window to a terminal? See Farwing Desktop.

1. Install

Linux and macOS (save, then run with bash — Ubuntu’s sh cannot run this script):

curl -fsSL -o farwing-install.sh https://farwing.io/install.sh
bash ./farwing-install.sh

Windows (PowerShell):

Invoke-WebRequest -UseBasicParsing https://farwing.io/install.ps1 -OutFile farwing-install.ps1
powershell -File .\farwing-install.ps1

Installers and checksums are on farwing.io/download.

2. First copy

One side is a local path; the other is user@host:path. The client starts a short-lived helper on the remote host over SSH, then moves the bytes on the data port (default 47700).

farwing cp big.iso user@host:/data/

Pull the other way the same way:

farwing cp user@host:/data/big.iso .
More ways to authenticate

SSH tries your usual keys first. You are asked for a password only when none of them is accepted.

To use one key, and to skip the password:

farwing cp -i ~/.ssh/lab_ed25519 -o IdentitiesOnly=yes -o PreferredAuthentications=publickey big.iso user@host:/data/

IdentitiesOnly=yes offers that key, not the other keys in your agent. PreferredAuthentications=publickey stops SSH from asking for a password if the key is refused. If the key has a passphrase, you are asked for that once.

To use a password, and to skip keys, when the server allows it:

farwing cp -o PubkeyAuthentication=no -o PreferredAuthentications=keyboard-interactive,password big.iso user@host:/data/

Both options are needed. Many servers ask for the password through keyboard-interactive, not the password method alone.

A sign-in that already succeeded is reused for about ten minutes, so the next copy does not choose again. Add -o ControlMaster=no when this copy must sign in with the method you just set. The other SSH options are in Signing in over SSH.

Firewall: open UDP/TCP 47700 on the receiving host (or whichever side runs the remote helper). SSH alone is not enough for full speed.

3. Path test (optional)

Memory-to-memory, like iperf3 — useful before you blame the disk:

farwing bench user@host --size 5G

Copying without SSH (lab mode)

You do not need SSH to try Farwing between two of your own machines. One machine runs farwing listen and serves one folder. The other copies to and from that folder. Both use the same key file instead of an SSH sign-in. Install farwing on both.

1. Make a key, and put it on both machines

farwing keygen > lab.key

On Windows (PowerShell):

farwing keygen | Set-Content -Encoding ascii lab.key

Copy lab.key to the other machine the way you would copy a password. Anyone with it can read and write the listener's folder.

2. Start the listener

On the machine that keeps the files, for example 203.0.113.10:

farwing listen --key-file lab.key --dir /srv/incoming

It serves /srv/incoming and nothing outside it, and waits on UDP port 47700. Open that port on its firewall. Leave it running. Stop it with Ctrl+C.

3. Copy

On the other machine, name the listener as a farwing:// address. As with scp, the sources come first and the destination last.

# send a file into the listener's folder
farwing cp --key-file lab.key big.iso farwing://203.0.113.10/

# fetch it back into the current folder
farwing cp --key-file lab.key farwing://203.0.113.10/big.iso .

Reading a farwing:// address

farwing://203.0.113.10:47710/incoming/big.iso has four parts:

PartMeaning
farwing://A machine running farwing listen. Always with --key-file.
203.0.113.10The listener's address or host name. Write an IPv6 address in brackets: [2001:db8::5].
:47710The port. Leave it out when the listener uses the default, 47700. Give it when the listener was started with --bind 0.0.0.0:47710.
/incoming/big.isoA path inside the listener's folder, not a path from the root of that machine. / alone is the listener's folder itself.

Test the path with no disk used: start the listener with --sink, then run farwing bench farwing://203.0.113.10 --key-file lab.key. For more examples, including folders and saving under another name, see Copying without SSH in the CLI reference.

Ticket copy (Farwing Server)

When a Farwing Server issues a transfer ticket, you do not need SSH to that host. Install the client, then:

farwing cp --ticket 'TICKET_STRING' .

With an upload ticket for a folder, . sends everything in the current folder, and you can name any files and folders instead. With a download ticket, . saves the file in the current folder. See the CLI reference for the details. Override the host in the ticket with --ticket-host when you reach the server through a tunnel.

Farwing Desktop (no terminal)

Farwing Desktop is the app for people who send and receive files with a Farwing Server and do not want a terminal. When someone clicks Open in Farwing Desktop in the Farwing Server portal, the app opens and runs the transfer in its own window, with pause, resume and a check of every file. The Farwing Server's license sets the speed, so a free Farwing Desktop is never the limit.

  1. Download the installer for Windows, macOS or Linux from farwing.io/download.
  2. Install it: run the .exe on Windows, drag the app from the .dmg into Applications on macOS, or install the .deb (sudo apt install ./farwing-desktop-linux-amd64.deb) or make the AppImage executable (chmod +x) on Linux. The download page lists what to click if Windows or macOS asks before the first start.
  3. Start it once. From then on, Farwing links from the browser open it. The first time, the browser asks whether to open Farwing Desktop: allow it.

If the portal says Farwing Desktop did not open, install it, start it once, and click Try again. The browser download and the farwing cp --ticket command stay available beside it.

When a file is already there. Settings → When a file is already there decides what Farwing Desktop does when a file with the same name is already in your folder, or on the server for an upload:

  • Ask me (the default) shows both files' size and date, so you can update it or keep it straight away.
  • Check whether it is the same file skips an identical file when the server already has its checksum or allows Farwing to create one. Creating a checksum reads both files and can take minutes for a large file; the app shows its progress and other files continue meanwhile. If the server cannot compare, Desktop explains why and asks whether to keep or replace the file.
  • Replace it starts at once and writes over the file there.

Updating a file of 8 MiB or more moves only the parts that changed: the rest is taken from the copy already there, and the whole file is checked before it replaces the old one. While it prepares, the transfer shows each step and its progress: checking the server's copy, comparing with yours, and reusing what both share. The finished transfer shows how much was reused and how much was downloaded or sent, and its speed counts only what moved.

The server administrator controls whether Farwing uses only checksums it already has, may read a file to create one, or does not compare files. Desktop distinguishes a missing checksum from comparison being turned off, so the choice does not look like a failed comparison.

With a folder or several files, the files that are not already there start at once. The question appears on the transfer while they copy, and you can answer it whenever you like. The files you replace follow when the rest is done. A download changes nothing in your folder until you answer.

Someone else may be uploading a file with the same name into the same folder at the same time. With Ask me or Check whether it is the same file, the transfer waits for theirs to arrive, shows how far their upload has got, and then asks or compares. With Replace it, both go ahead and the one that finishes last is kept. If two different files arrive anyway, yours is saved beside the other as name (2).ext, and the transfer says so.

When a transfer is already running. You can start more uploads and downloads at any time, including another upload into the same folder. Settings → When a transfer is already running decides what they do:

  • Queue it (the default) runs up to three transfers at once; Transfers at once under it changes that from 1 to 8. One large file is fastest on its own, and several at once help with many files. The others wait in the list in the order you added them, each showing its place in line, and start by themselves. Start now starts one at once, Pause holds it back, and Cancel removes it from the queue.
  • Start it at once starts every transfer straight away. They share the connection.

Lanes and protocol. Settings → Lanes sets how many connections a transfer uses side by side: Automatic, 1, 4, 8 or 16. Automatic picks a count from how fast the last transfer to that server went. While a transfer runs, its card shows the count, whether it is Auto, from Settings, saved for this server or set for this transfer, and the route in use; the (i) button explains why. The minus and plus buttons change the count: a moment after the last press, the transfer pauses briefly and carries on from where it was, and the card then shows the speed before and after. Auto puts the count back. Settings → Protocol decides how the files travel:

  • Auto (the default) checks for a moment whether Farwing over UDP, or else Farwing over TCP, reaches the server, and starts there. If neither does, the transfer starts over HTTPS and moves to the faster route as soon as one gets through. Small files go over HTTPS straight away. Nothing already sent is sent again. The status line says which one the transfer is using.
  • Farwing UDP and Farwing TCP use only that one.
  • HTTPS uses the same address as the web portal. Use it when your network lets only web traffic out.

If Farwing UDP, Farwing TCP or HTTPS is chosen and the server cannot be reached that way from your network, the transfer stops and says where that choice was made. Use Automatic sets it back to Automatic, in Settings or for that server, and tries again.

Settings for each server. With Settings → Servers → Remember the best settings for each server on (the default), Farwing Desktop saves the protocol and lanes that carried a large transfer for that server, and keeps the fastest. A server's own settings are used instead of Lanes and Protocol. Each saved server shows what it uses and the speed that saved it:

  • Change sets its protocol and lanes. Changing them turns off Update automatically for that server, so your choice stays until you turn it back on.
  • With Update automatically on, every route is still checked each time, and a transfer that is as fast, or finds another route, replaces what was saved.
  • With it off, the server's settings are used exactly as set: a protocol other than As in Settings is the only one tried.
  • Add a server sets one up before its first transfer. Remove forgets one, and Remove all forgets every one.

Trusted certificates. Farwing Desktop trusts the certificates your computer trusts. If your company's Farwing Server has a certificate from your company's own certificate authority, or a self-signed one, Settings → Trusted certificates → Add a certificate file adds that certificate. Your IT team can give it to you. The farwing command line on the same computer trusts it too; see Trusted certificates.

Updates. When the Farwing Server you use runs a newer version, Farwing Desktop says an update is available, at most once a day. Close the note or choose Download. If the server needs a newer Farwing Desktop, or is older than this Farwing Desktop works with, the transfer does not start and the app says which version is needed.

Next