lengau / sshed

Edit files on a remote SSH server using a local client.
BSD 2-Clause "Simplified" License
4 stars 0 forks source link

Seamless sshedit #3

Open lengau opened 9 years ago

lengau commented 9 years ago

Before a 1.0 release, sshedit should work (somehow — suggestions are welcome) without special commands, etc.

It's alright to require some setup for seamless work (similar to ssh agent, though potentially more setup), but the end goal should be to allow the user to simply login locally, SSH to a machine, and immediately use sshedit.

lengau commented 9 years ago

Forwarding the environment variable can be done through SendEnv and AcceptEnv.

~/.ssh/config can be used to set up the socket forwarding, though I don't think you can forward the socket based on the environment variable.

ssh-agent uses quite a bit of code that's baked into openssh to make itself work. Perhaps with libopenssh the OpenSSH developers will expose an API that allows something similar. This may require rewriting sshed in C or writing libopenssh bindings for Python.