Tips to work over SSH

Hi, everybody!

Those of you that use Kakoune over SSH could give me some tips about your setup?

I’m thinking of things like making new and terminal commands work. And clipboard integration (if possible) would be a plus. And, obviously, any other clever trick you currently use and I couldn’t anticipate would be nice.

Regarding new, I don’t have tmux installed on the remote machine. Is there another way? More specifically, would it be possible to configure my remote Kakoune to communicate to my local Kitty to handle that?

Thanks in advance.

Ow man so many questions I can’t answer. But when I’m editing remote I try to use mosh. It’s great for connections which aren’t rock solid (all of them here).

I haven’t personally used it myself, but I have heard a lot of good things about sshfs. It essentially allows for mounting a remote filesystem. That should allow you to use kitty with your local kakoune config. Apart from that, I don’t know how to help, but I would second harrts’ suggestion with mosh - it’s a lifesaver on unstable networks.

sshfs tends to not do great with lots of small files. I much prefer the experience of SSH over sshfs. Even using it locally (to a VM on the same machine) made it very slow.

Fortunately, I don’t have problems with the stability of my connection. But it’s nice to know a tool like mosh exists. Thanks!

sshfs is not a good option for my setup. But thanks anyway =)

One thing I discovered recently is the ControlMaster configuration option of ssh that allows to share a single connection for multiple sessions. This means ssh wont ask you for a password if you already have an active session, making opening a new client on the existing session faster (just ssh user@host kak -c session, no password asked, no connection delay).

I would love to find a way to have a terminal implementation that works through ssh (new uses terminal as a backend so we would get that for free), for this to work we would need the kakoune server running remotely to somehow launch a new terminal emulator on the local machine, I can think of a couple ways to achieve this:

  • Use a remote -> local ssh session, ControlMaster would help again here avoiding the need to enter a password, but that is not always practical (the local machine might not have a sshd)
  • Emit some escape sequence to notify the local terminal emulator to open a new client, this would be terminal emulator dependent, it looks like kitty and iterm2 could support that.

Kitty seems a interesting development in terminal land in general. I have high hopes for the project.

Thanks, @mawww!

One think that puzzles me is that Kitty advertises in different places that many of its features work even over ssh, but don’t explain how can we use it. I’ve even found an issue in which someone asked for clarifications on this regard, but the answer from the developer wasn’t satisfatory.

No tips as such, but you could use a raspberry-pi as a server with a large thumb drive for storage and test, test, test or ‘use a [Docker] container terminal in a browser, attach to someone else’s terminal, and share control’ (Docker in Practice, p.32). Docker-Terminal: a terminal for Docker containers.

As you probably know SSH is the sledgehammer protocol as bypasses firewall and mounts an entire file system (cool, but very heavy). If your use case is just files not the traversal of an entire filesystem you could try Syncthing SSH Tunneling if firewall is the issue.

Read more here or here if you like. You can also get on board here. Ah nondescript here links, an internet bloggers gem (google analytics it’s all on you).

Side note: I actually got into an argument with another student over having to click reference links to do some research gathering as there was no search term box to enter a phrase into. It’s official, clicking links is just too damn hard work! Bye :wave:.