Skip to content

Instantly share code, notes, and snippets.

@volks73
Last active November 2, 2022 04:52
Show Gist options
  • Save volks73/1743ed6a98647cfcb6f2d06ee5fca43b to your computer and use it in GitHub Desktop.
Save volks73/1743ed6a98647cfcb6f2d06ee5fca43b to your computer and use it in GitHub Desktop.

Windows 10 Spacemacs Tramp

Spacemacs is a distribution of the Emacs text editor, while Tramp is an Emacs mode that enables seemless editing of remote files over SSH. Windows 10 is an Operating System (OS) that until very recently did not have a built-in SSH client. Microsoft did recently add the OpenSSH client and server to Windows 10, but for version 1809 and newer. Tramp does not appear to currently support, or recognize, the Windows 10 1809 OpenSSH client, but it does support plink from the makers of PuTTY, which was the only real, viable SSH client for Windows prior to Windows 10 1809. Thus, even if the Windows 10 1809 OpenSSH client is available and installed, PuTTY and plink are still needed to remotely edit files from a Windows 10 client using Tramp.

Configuration

  1. Download and install PuTTY. The 64-bit MSI installer includes PuTTY, plink, and PuTTYgen.
  2. Create SSH keys.
  3. Create a PuTTY keyfile from the SSH keys.
  4. Create and save a PuTTY session that uses PuTTY key file.
  5. Use the PuTTY session name as the plink hostname in Emacs Tramp.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment