Skip to main content

# SSHEd

SSHEd is a small connector program that allows you to use a local text editor or IDE to edit files on a remote server without having to manually copy the file to the local machine. More importantly, sshedit gets run from the remote machine.

This means it can be used as a drop-in replacement for ed, emacs, nano, vi, etc. on remote machines over SSH.

## Installation For right now, you’ll need to do the following to use sshed:

  1. Install it on both the client and host machine.

  2. On the client machine, run sshed_client and copy the command given on stdout to the shell where you want to run ssh

  3. On the client machine, SSH to the host using the edssh command.

  4. On the host machine, you should now be able to use sshed as your editor, but only in the shell you connected via edssh.

## Editors You should set your $EDITOR environment variable to be a graphical editor that blocks the terminal until the file is closed. Some graphical text editors don’t block the terminal by default, so check for an option that’ll do so. For example, kate needs to be run with the -b argument to do so. In bash, you can set your editor to kate by running: export EDITOR=’kate -b’ I would recommend adding that to your ~/.bashrc to keep it across sessions.

## Future Versions Quite a few changes are planned before the 1.0 release. This section contains some basic ideas of the vision for sshed.

### Installation Eventually, the installation process will look similar to the following:

  1. Extract the Python modules and binaries on the client.

  2. On the remote host, modify the AcceptEnv line of /etc/ssh/sshd_config to include the text variable “SSHED_SOCK”. This isn’t required, but it helps.

  3. In ~/.ssh/config, add a SendEnv line that sends “SSHED_SOCK”. See the note below.

  4. Add sshed_client to run like ssh-agent does.

  5. If the host has sshed installed, simply ssh to the host and use sshed

  6. If sshed is not installed on the host, use edssh to SSH in.

Metadata

Release files for sshedit 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sshedit 0.1
File Size Uploaded
sshedit-0.1.1.tar.gz 20.5 kB Details

Release files / sshedit-0.1.1.tar.gz

Download URL sshedit-0.1.1.tar.gz
Size 20.5 kB
Tags Source
SHA-256 checksum
How to use checksums
3d3c6fc01d92769ce96c4b2d1809375049c45b2e28747aa2c5327b5902910cbc
BLAKE2b-256 checksum
How to use checksums
77d86e0489ce740821e322767ab34db6ba2aeff535dff77cb8d8d5c2d8dfd3f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page