PROD-000107

FastSSH: Zero-Lag SSH Client (Mac, Windows, Linux)

$19
Get FastSSH, an SSH client that shows your typing instantly. Build and run it yourself on Mac, Windows or Linux with step-by-step instructions. $19 one-time.

Contact Us To Buy
Category: react

Most SSH clients are black boxes. You install one, type your commands, and never see how the typing, the connection or the security actually works. FastSSH Source Code is the opposite. It is the complete C source of a working SSH client that shows every keystroke instantly, with a comment on every line, delivered as a zip file that you build and run yourself on macOS, Windows or Linux.

FastSSH is a command-line SSH client written in C17 on top of libssh. Its central trick is simple. At a prompt, it draws what you type on your own screen immediately, and it sends the finished command to a persistent shell on the server only when you press Enter. Typing never waits on the network, so a slow or distant connection stops feeling slow while you type.

You can use the source in two ways. You can build it and use it every day as a working tool. Or you can read it as a compact, practical study in systems programming: raw terminal control, an event loop that waits on the keyboard and the network at once, a small state machine, UTF-8 text editing, host key verification and real SSH authentication. The price is $19, once, with no subscription.

Want to go straight to the instructions? Jump to the build steps for macOS, Linux or Windows.

Ordinary SSH on a distant server: the letters trail behind your keystrokes

dev@server:~$ sudo systemctl restart nginx

FastSSH: each letter appears as you press the key

dev@server:~$ sudo systemctl restart nginx

A snapshot of one moment, as an illustration rather than a benchmark. You have typed the same keys in both. On the top line the faded letters are still travelling over the network and have not appeared yet. On the bottom line they are already on screen.

What you get in the zip

You receive a single zip file containing the full project. This is source code, not a ready-to-run program. You compile it on your own computer, which takes a few minutes once the tools are installed, and the instructions further down walk you through every step on each operating system.

FastSSH/
├── CMakeLists.txt         build instructions for CMake
├── INSTALL.md             build and install guide for all three systems
├── LICENSE                the terms of your purchase
├── include/
│   ├── ssh_client.h       connecting and opening the shell
│   ├── terminal.h         raw keyboard and screen control
│   └── history.h          command history
└── src/
    ├── main.c             the program itself, written to be read from the top
    ├── ssh_client.c       connection, host key check, authentication
    ├── terminal_posix.c   terminal layer for macOS and Linux
    ├── terminal_win32.c   terminal layer for Windows
    └── history.c          saved command history

The libssh library is not bundled in the zip. You install it with your system’s package manager as the first step of the build, which means you get the copy your system maintains and updates, rather than a frozen one that ships inside someone else’s download.

The lag you stopped noticing

A traditional SSH session works like a conversation by letter. When you press a key, your terminal sends that key to the server. The server’s terminal driver receives it and sends it back as an echo, and only when that echo arrives does your screen draw the character. Every single character you type makes a full round trip across the network before you see it.

On a fast, nearby connection the round trip takes a few milliseconds and you never think about it. But a lot of real work does not happen on a fast, nearby connection. A server in another continent can easily take a quarter of a second to answer. A phone hotspot, hotel Wi-Fi, a congested office VPN, a satellite link or a crowded conference network can all push the delay far enough that typing starts to feel sticky. You hit a key, you wait, you see it. Do that a few thousand times a day and it wears you down.

The effects are not only about comfort. When characters lag behind your fingers you lose the ability to see what you are typing as you type it. You overshoot and have to backspace. You double-press Enter because nothing seemed to happen. You mistype a path, do not notice until the echo catches up, and then you have to decide whether the command you just fired off did something you did not intend. Many people end up typing commands in a local text editor and pasting them into the session, which works, but turns a terminal into a clipboard exercise.

What FastSSH does not do. It does not make your remote commands run faster. A command that takes four seconds on the server still takes four seconds. What FastSSH removes is the delay between your fingers and your screen while you type the command. That is a narrower promise than “faster SSH”, and it is one the tool can keep.

What FastSSH does differently

The idea behind FastSSH is simple. Your keyboard belongs to your computer, so your computer should be the one to draw what you type. Instead of sending each key to the server and waiting for the echo, FastSSH keeps a line editor on your side of the connection. While you are at a prompt, every key goes into a local buffer and is drawn on screen immediately. No network is involved in that step, so there is nothing to wait for.

When you press Enter, FastSSH sends the finished line to the remote shell. The output comes back and appears on your screen as soon as it arrives. While a command runs, the keyboard switches to a different mode in which keys go straight to the server, which is what you need for programs that take over the terminal. When the command finishes, FastSSH notices, goes back to local editing, and shows a new prompt that reflects where you actually are on the server.

Two modes, switched automatically, with the remote shell staying alive the whole time. That is the whole design, and the rest of this page is about what makes it dependable.

How FastSSH works

You do not need to understand any of this to use the tool. But if you are going to trust software with your servers, it helps to know what it is doing. Here is the honest, plain-language version.

One real SSH connection and one persistent shell

FastSSH opens a single SSH connection to your server, requests a pseudo-terminal, and starts your login shell. That shell stays running for the entire session. FastSSH never launches a separate one-shot process for each command, which means nothing is lost between commands. If you type cd /var/www and then pwd, you get /var/www, because it is the same shell that received both lines. Exported variables, shell variables, aliases and anything your shell configuration sets up all stay in place.

The SSH protocol itself is handled by libssh, a mature, widely used open-source SSH library. FastSSH does not contain a home-made implementation of encryption or the SSH protocol. That is deliberate: protocol code is the last place where a small project should try to be clever.

A local line editor that never waits

At the prompt, FastSSH reads your keys directly from the terminal in raw mode, edits the current command in a local buffer, and redraws the line itself. Backspace, Delete, the arrow keys, Home and End all work on that buffer. Text is handled as UTF-8, so accented letters and non-Latin scripts are inserted and deleted as whole characters rather than as broken bytes. Because the drawing happens locally, the screen updates the moment you press a key, whatever the state of the network.

A small hook that tells FastSSH where you are

When the session starts, FastSSH types a short setup script into the remote shell. For Bash and Zsh, the script does two things. First, it makes the shell print a tiny hidden marker every time it is ready for a new command. The marker carries the exit status of the last command and the current working directory. Second, it turns the remote terminal’s own echo off while the shell waits for input and back on just before a command runs, so you never see your command typed twice.

This hook is how FastSSH always knows whether you are at a prompt or whether a command is still running, and it is how the prompt on your screen can show the real current directory on the server. Because the script is typed into the session, nothing is written to your dotfiles and nothing needs to be installed on the server. When the session ends, the hook goes with it.

Interactive programs just work

Some programs need real, immediate keystrokes: sudo asking for a password, nano or vim editing a file, top refreshing a screen. As soon as you press Enter on a command, FastSSH switches to passthrough mode and forwards every key to the server untouched. The remote program draws its own screen and handles its own keys. When the program exits and the shell prints its marker, FastSSH returns to local editing. You do not press a hotkey to switch modes and you do not have to tell the tool which commands are interactive.

Output that does not freeze the keyboard

FastSSH waits on your keyboard and on the network at the same time in a single loop, instead of choosing one and blocking on it. Remote output is drawn as it arrives. When a command produces a flood of output, such as a large log file, FastSSH reads in bounded bursts and returns to check the keyboard between them, so the program does not get so busy drawing text that it stops listening to you. Press Ctrl+C and the interrupt goes to the remote command as you would expect.

If the shell is not one FastSSH knows

The prompt hook supports Bash and Zsh. If your server’s login shell is something else, FastSSH waits a few seconds for the first marker, notices that none arrived, tells you so, and falls back to plain passthrough. In that mode it behaves like an ordinary SSH client and you lose the instant local echo, but the session still works. You are never left staring at a blank screen wondering what went wrong.

The same behaviour on Mac, Windows and Linux

The part of FastSSH that talks to your keyboard and screen is written separately for each operating system. On macOS and Linux it uses the standard Unix terminal interface. On Windows it uses the Windows console in its virtual-terminal mode, which is what lets arrow keys, colours and full-screen programs behave the way they do on Unix. Everything above that layer, including the SSH connection, the line editor, the prompt tracking and the command history, is the same code on all three systems. The result is one program with one set of habits, wherever you happen to be sitting.

Your computer and your server are independent of each other. You can work at a Windows laptop and connect to a Linux server, or sit at a Linux desktop and connect to a Mac. The one requirement for the instant-echo mode is on the server side: its login shell needs to be Bash or Zsh.

What you get

Instant local echo
Every character you type at a prompt appears immediately, with no network round trip, on a link of any speed.
A persistent remote shell
One shell for the whole session. Directory changes, environment variables, shell variables and aliases survive from command to command.
A truthful prompt
The prompt shows your user, the host and the real working directory on the server. If the last command failed, the exit status appears in brackets at the start of the prompt.
Persistent command history
Commands are saved to a history file between sessions, and the up and down arrows walk through them. Empty commands and immediate repeats are not saved. The history file is created readable only by you and can be wiped with a single command.
Proper line editing
Arrow keys, Home, End, Delete and Backspace, plus the familiar control keys for jumping to the start or end of the line and for deleting to either side of the cursor.
UTF-8 text
Accented letters and non-Latin scripts are inserted, moved over and deleted as whole characters.
Interactive programs
Password prompts, editors and full-screen programs get raw keystrokes while they run, and FastSSH returns to local editing when they finish.
Responsive during large output
Output is read in bounded bursts, so a long stream of text does not stop the keyboard from being heard.
Window resizing
Resize your terminal window and the size is passed to the remote terminal, so full-screen programs redraw to fit.
Reconnect that keeps your typing
If the connection drops, FastSSH says so plainly and offers to reconnect. A command you had typed but not yet sent is kept and reappears after you reconnect, so nothing is silently lost.
Three ways to authenticate
Your SSH agent, a private key file (including passphrase-protected keys), or a password entered at a hidden prompt.
Host key verification
Server identities are checked against your known hosts. Unknown servers are never trusted without your explicit confirmation.
Nothing to install on the server
FastSSH talks standard SSH to any server that accepts it. No agent, daemon or helper program is needed on the remote side.
A configurable timeout
Set how long FastSSH waits when connecting, so a dead address fails quickly with a clear message.

A day with FastSSH

Features are easier to judge when you picture them in use. Here are four ordinary situations where the difference shows up.

The maintenance window on a distant server

It is late, you have a short window to restart a service on a machine hosted in another region, and every keystroke lags. With a normal client you type slowly, watch the echo, and stop to check the path before you press Enter on anything risky. With FastSSH the line you are typing is on your screen as fast as your fingers move, so you can see exactly what will be sent before you send it. You change directory, tail a log, restart the service, check the status and the exit code in the prompt, and finish with fewer second thoughts.

Working from a bad connection

You are on a train, in a café or on a hotspot with a weak signal. The connection is slow and sometimes stalls. Typing is the part you can still control, and FastSSH keeps it smooth. If the link drops completely, the program tells you instead of freezing, and when you reconnect the half-typed command is still waiting in the buffer.

The long job you start and then interrupt

You kick off a build, a data export or a long-running script. While it runs, your keystrokes go straight to the server, so Ctrl+C interrupts the job the way it would in any terminal. The moment the job ends, the prompt returns with a new working directory and the exit status of the job, which saves you from typing a separate command just to see whether it succeeded.

Editing a config file in place

You open a configuration file with nano or vim. FastSSH hands over the keyboard completely while the editor runs, so the editor behaves exactly as it normally would, and when you quit it you are back at a fast local prompt in the same directory you started from.

Security you can check

A faster way to type is worthless if it makes your servers less safe, so FastSSH treats the security basics as non-negotiable. None of the following is switched off for speed.

  • Host keys are verified. FastSSH checks the server’s key against your known hosts file. If the server is new to you, FastSSH shows its fingerprint and asks you to type the full word “yes” before it trusts the server and saves it. If a known server presents a different key than the one on record, FastSSH warns you loudly and refuses to continue.
  • Passwords are never echoed or stored. A password is read at a hidden prompt, used for the login attempt, and wiped from memory immediately afterwards. FastSSH does not write it to disk, to the history file or to a log.
  • Key passphrases are requested only when needed. If your private key is protected, FastSSH asks for the passphrase through the same hidden prompt, and only when the key actually requires one.
  • The history file is private. It is created so that only your user account can read it. A command typed with a leading space is not saved to history at all, which is a handy habit for anything you would rather not keep.
  • Established cryptography. Encryption and the SSH protocol come from libssh. FastSSH does not implement its own.
  • Clear failure messages. Authentication errors, refused connections and timeouts produce specific messages without ever printing credentials.

It is also fair to say what FastSSH cannot do. It cannot make a poorly configured server secure, and it cannot protect a password you type into a program that runs on a compromised machine. Use keys or an agent where you can, keep your known hosts file honest, and treat the host key prompt as the security check it is rather than something to click through.

Keyboard shortcuts

At a prompt, FastSSH uses the keys you already know from other shells.

KeyWhat it does
Left and RightMove the cursor one character at a time
Home or Ctrl+AJump to the start of the line
End or Ctrl+EJump to the end of the line
BackspaceDelete the character before the cursor
DeleteDelete the character under the cursor
Ctrl+KDelete from the cursor to the end of the line
Ctrl+UDelete from the start of the line to the cursor
Up and DownStep through your command history
EnterSend the command to the remote shell
Ctrl+CAt a prompt, discard the current line. While a command runs, interrupt it on the server.
Ctrl+DOn an empty line, disconnect and exit
Ctrl+LClear the screen

On a Mac, these shortcuts use the Control key, not Command. On Windows and Linux, Ctrl is Ctrl. If your keyboard has no Home or End key, as on many laptops, Ctrl+A and Ctrl+E do the same jobs.

A tour of the code

The code is written to be read. Every line of C carries a comment explaining what it does. Calls into libraries are tagged, for example [libssh] or [termios], so you can see at a glance which parts are the program’s own logic and which belong to a library. Functions that the program defines itself are marked [mine], and there are deliberately very few of them, so the main logic reads in one piece from top to bottom.

Suggested reading order

  1. src/main.c, first. It begins with the command-line options, then sets up signals and history, then runs the reconnect loop, and inside that the main event loop. The two-mode state machine, the line editor and the prompt-marker parser all live here.
  2. src/ssh_client.c. The SSH side of the program: connecting, checking the host key against your known hosts, authenticating with an agent, a key or a password, and opening the shell with a pseudo-terminal.
  3. src/terminal_posix.c and src/terminal_win32.c. The platform layer: raw mode, window size and hidden password input. Reading the two side by side shows how one small interface is implemented on Unix and on Windows.
  4. src/history.c. A small module that shows bounded lists, dynamic memory and private file permissions.

Ideas you can study in it

  • Raw terminal mode. How a program takes over the keyboard, reads individual keys, and puts the terminal back exactly as it found it.
  • One loop, two inputs. How a single loop waits on the keyboard and a network socket together, without threads and without blocking on either.
  • A small state machine. How the program knows whether you are at a prompt or a command is running, using a hidden marker printed by the remote shell.
  • Partial reads. How to recognise a marker that arrives split across two network reads, a classic source of bugs in network code.
  • UTF-8 line editing. How to insert, move over and delete multi-byte characters without breaking them.
  • Careful security habits. Host key verification, hidden password prompts, wiping a password from memory after use, and private file permissions.

Ideas for making it your own

Because you have the whole source, you can change it. Tab completion is not implemented yet, so it makes a good first project. Other natural extensions include a configuration file, a coloured prompt, port forwarding or file transfer. None of those exist in the code today, so treat them as invitations rather than features.

Build and run it yourself

Every operating system follows the same four steps: install a C compiler, CMake and libssh; unzip the project; run two CMake commands; then run the program. Only the first step differs between systems. Follow the section for your system, and open your terminal in a normal window rather than inside a code editor’s output panel, because FastSSH needs a real interactive terminal.

macOS (Apple Silicon and Intel)

  1. Install Apple’s command line tools. They include the C compiler. Open Terminal and run:
    xcode-select --install
    A window appears. Follow it. If the tools are already installed, the command tells you so.
  2. Install CMake and libssh with Homebrew. If you do not have Homebrew yet, install it from brew.sh first. Then run:
    brew install cmake pkg-config libssh
  3. Unzip the project.
    unzip ~/Downloads/fastssh-source.zip -d ~/
    cd ~/FastSSH
  4. Build it.
    cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
    cmake --build build
  5. Run it.
    ./build/fastssh connect user@example.com
  6. Optional: use it from anywhere. Install it into your home folder and add that folder to your PATH. These commands use zsh, the default shell on macOS:
    cmake --install build --prefix "$HOME/.local"
    echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
    source ~/.zshrc
    which fastssh
    From then on you can type fastssh connect user@example.com in any folder.

Linux

  1. Install a compiler, CMake and libssh. Pick the line for your distribution:
    # Debian, Ubuntu and derivatives
    sudo apt update
    sudo apt install build-essential cmake pkg-config libssh-dev unzip
    
    # Fedora, RHEL and derivatives
    sudo dnf install gcc cmake pkgconf-pkg-config libssh-devel unzip
    
    # Arch and derivatives
    sudo pacman -S base-devel cmake pkgconf libssh unzip
    FastSSH needs libssh version 0.9 or newer. Ubuntu 20.04 and later, Debian 11 and later and current Fedora all provide one.
  2. Unzip the project.
    unzip ~/Downloads/fastssh-source.zip -d ~/
    cd ~/FastSSH
  3. Build it.
    cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
    cmake --build build
  4. Run it.
    ./build/fastssh connect user@example.com
  5. Optional: use it from anywhere.
    cmake --install build --prefix "$HOME/.local"
    echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
    source ~/.bashrc
    which fastssh
    If your shell is zsh, use ~/.zshrc instead of ~/.bashrc.

Windows 10 and Windows 11

Windows needs a few more tools, because it does not come with a C compiler or a package manager for libraries. You only install them once. FastSSH needs 64-bit Windows 10 version 1809 or later, or Windows 11.

  1. Install the build tools. Install these three, and accept the default options except where noted:
    • Visual Studio Build Tools 2022 (free, from visualstudio.microsoft.com). In the installer, tick the workload called Desktop development with C++.
    • CMake version 3.21 or newer (from cmake.org). Choose the option that adds CMake to the PATH.
    • Git for Windows (from git-scm.com), which vcpkg needs.
  2. Install libssh with vcpkg. Open Developer PowerShell for VS 2022 from the Start menu, so that the compiler is found, and run:
    git clone https://github.com/microsoft/vcpkg C:\vcpkg
    C:\vcpkg\bootstrap-vcpkg.bat
    C:\vcpkg\vcpkg install libssh:x64-windows
  3. Unzip the project.
    Expand-Archive -Path "$HOME\Downloads\fastssh-source.zip" -DestinationPath C:\Dev
    cd C:\Dev\FastSSH
    You can also right-click the zip in File Explorer and choose Extract All, then open PowerShell inside the extracted folder that contains CMakeLists.txt.
  4. Build it.
    cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake
    cmake --build build --config Release
    Using the vcpkg toolchain file lets CMake find libssh and copy the libssh DLLs next to the program.
  5. Run it. Use Windows Terminal if you have it.
    .\build\Release\fastssh.exe connect user@example.com
  6. Optional: use it from any window. Install it into a folder of your choice and add that folder to your user PATH:
    cmake --install build --config Release --prefix C:\Tools\FastSSH
    [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Tools\FastSSH\bin", "User")
    Close and reopen your terminal, and then fastssh connect user@example.com works in any folder.

Using FastSSH once it is built

The options are the same on every system. The examples below use the installed fastssh command. If you have not installed it, use the path to the built program instead, as shown in the steps above.

# Use a non-standard SSH port
fastssh connect user@example.com --port 2222

# Authenticate with a specific private key (macOS and Linux)
fastssh connect user@example.com --key ~/.ssh/id_ed25519

# The same on Windows PowerShell, using the full path
fastssh connect user@example.com --key "$HOME\.ssh\id_ed25519"

# Wait up to 20 seconds for the connection
fastssh connect user@example.com --timeout 20

# Keep history in a file of your choosing
fastssh connect user@example.com --history ~/work/ssh-history

# Delete your saved command history
fastssh history clear

On your first connection to a new server, FastSSH shows the server’s fingerprint and asks whether to trust it. Compare it with the fingerprint from your hosting provider or server administrator if you can, then type yes to continue. After that, FastSSH tries your SSH agent, then your default keys, and finally asks for a password at a hidden prompt. If you pass --key, it uses that key first.

No server yet? Test against your own computer

You do not need a remote machine to try FastSSH. Turn on the SSH server that your own system provides and connect to yourself.

  • macOS: open System Settings, then General, then Sharing, and turn on Remote Login. Then run fastssh connect $(whoami)@localhost.
  • Linux: install and start an SSH server, for example sudo apt install openssh-server followed by sudo systemctl enable --now ssh on Debian and Ubuntu (the service is called sshd on Fedora and Arch). Then run fastssh connect $(whoami)@localhost.
  • Windows: the instant-echo mode needs Bash or Zsh on the server, and Windows’ own SSH server starts cmd or PowerShell. The easiest test target is Linux inside WSL. Run wsl --install -d Ubuntu once, then inside Ubuntu run sudo apt install openssh-server, change its port to 2222 in /etc/ssh/sshd_config and run sudo service ssh start. Connect with fastssh connect yourlinuxuser@localhost --port 2222.

Troubleshooting

Most build problems come from a missing tool or a missing library. Here are the common ones and their fixes.

What you seeWhat it means and how to fix it
cmake: command not foundCMake is not installed, or the terminal was opened before it was added to the PATH. Install CMake, then open a new terminal window.
Package 'libssh' not found or Could NOT find libsshThe libssh development files are missing. Install libssh-dev (Debian, Ubuntu), libssh-devel (Fedora), or run brew install libssh pkg-config on macOS. On Windows, check that you passed the vcpkg toolchain file to CMake.
libssh/libssh.h: No such file or directorySame cause: the headers are missing. Install the development package, not just the runtime library.
xcrun: error: invalid active developer path (macOS)Apple’s command line tools are missing or out of date. Run xcode-select --install.
No CMAKE_C_COMPILER could be found (Windows)Install the Desktop development with C++ workload and run the commands from Developer PowerShell for VS 2022.
ssh.dll was not found (Windows)Run the program from build\Release, or use the install step, so that the libssh DLLs sit next to fastssh.exe. Make sure you built with the vcpkg toolchain file.
FastSSH needs an interactive terminalThe program was started somewhere that is not a real terminal, such as an editor’s output panel or a pipe. Run it in Terminal, Windows Terminal or your system’s normal terminal app.
fastssh: command not found after installingThe install folder is not on your PATH yet. Add it as shown in the install steps and open a new terminal window.
A loud warning that the host key has changedTreat this as real. It can mean the server was rebuilt, or that someone is intercepting the connection. FastSSH refuses to continue. Verify the new fingerprint with the server’s owner before you change anything.
Authentication failedCheck the user name and password, and that the server accepts that method. For key files on macOS and Linux, the private key must not be readable by other users: run chmod 600 on it.

Who this is for

  • Developers and sysadmins who want a tool they can inspect. You can read exactly what the program does with your credentials and your connection before you point it at a production server.
  • Students and self-taught C programmers. It is a real, working program of a useful size, with every line explained, rather than a toy example.
  • People who work from imperfect networks. Travellers, remote workers on shared Wi-Fi, people tethering to a phone and teams behind a slow VPN feel typing lag most, and benefit most.
  • Tinkerers who want to extend it. A small, readable codebase is a much better starting point for your own features than a large one.

It is not the right purchase if you want a one-click installer, because you build the program yourself. It also does little for you if you are on a very fast, nearby connection and the typing delay does not bother you, since the benefit grows with latency.

Honest limitations

A product you pay for should tell you where its edges are before you buy.

You build it. The zip contains source code only. You need a C compiler, CMake and libssh installed, which the instructions above cover step by step. Expect the first build on a new machine to take a few minutes of setup.

Platforms. The source builds on macOS (Intel and Apple Silicon), 64-bit Windows 10 version 1809 or later and Windows 11, and 64-bit Linux. On Windows, use Windows Terminal or another console that supports virtual-terminal sequences.

Tab completion. The Tab key does not complete file names or commands yet. History, arrow keys and the editing keys all work.

Shells. The instant-echo mode needs Bash or Zsh on the server, whatever your own operating system is. Other shells, including the cmd and PowerShell that a Windows SSH server normally starts, fall back to plain passthrough, which behaves like an ordinary SSH client.

Very long lines. If a single command grows wider than your terminal window, the local redraw can look untidy, although the command is still sent correctly. Wide characters such as some emoji are counted as one column.

While a command runs. During a running command, keys go to the server, so typing at that moment is only as responsive as the link, like any normal client. The instant echo applies at the prompt.

Scope. FastSSH does not do file transfer, port forwarding, jump hosts or split panes.

What it costs, and what you can do with it

$19

One-time payment. No subscription.

  • The complete FastSSH source code as a zip file
  • Build and install instructions for macOS, Windows and Linux
  • A comment on every line of C, written to be learned from
  • The licence terms in the LICENSE file inside the zip

Frequently asked questions

Do I get a ready-to-run program?

No. This purchase is source code only. You build the program on your own computer by following the steps for your operating system. If you do not want to compile anything, this is not the right product for you.

Do I need to know C to use it?

No, to build and run it you only need to copy and paste the commands above. To change the code you need some C, and to learn from it you will pick up a lot, because every line is commented. Beginners will find main.c easiest to read first.

Which compilers and systems does it support?

On macOS it uses the compiler from Apple’s command line tools, on Linux it uses GCC or Clang, and on Windows it uses the Microsoft C compiler from Visual Studio Build Tools. CMake drives the build on all three. It needs libssh 0.9 or newer.

Does it make my remote commands run faster?

No. FastSSH removes the delay between pressing a key and seeing the character, which is the part of SSH you feel on a slow connection. Once a command is sent, the server runs it at the same speed as always.

Do I need to install anything on my server?

No. FastSSH connects with standard SSH, so any server that already accepts SSH connections works. The small setup script it uses is typed into your session when you connect and disappears when the session ends. The instant echo needs Bash or Zsh as the server’s login shell.

Does it change my shell configuration files?

No. The hook is typed into the live session and is never written to your dotfiles. Your prompt and shell settings on the server are not permanently altered.

Is my password stored anywhere?

No. A password is read at a hidden prompt, used to log in, and then erased from memory. It is not written to disk, to the history file or to any log. Because you have the source, you can confirm this yourself. Using SSH keys or an agent avoids typing passwords at all.

Does it replace or depend on the ssh command built into my system?

No. FastSSH is a separate program with its own SSH library. It does not run, wrap or replace the system ssh command, so building it does not change how ssh behaves on your machine.

Does it work with a Windows server?

You can connect to any SSH server, including Windows OpenSSH. But a Windows server normally starts cmd or PowerShell, which FastSSH’s prompt hook does not support, so the session runs in plain passthrough mode, like an ordinary SSH client.

Where is my command history saved?

In a file in your user folder, which you can change with --history. Run fastssh history clear to delete it. Any command you start with a space is never saved.

Will I get updates or support?

Your purchase terms, including any updates and how to reach me with questions, are described on the purchase page and in the LICENSE file included in the zip.

Subscribe to our Newsletter

Get product updates and news delivered straight to your inbox. No spam, ever.