←back to thread

Making TRAMP faster

(coredumped.dev)
226 points celeritascelery | 1 comments | | HN request time: 0.203s | source
Show context
jonnycomputer ◴[] No.44356898[source]
I kinda gave up on using it because so many of my remotes are tunneled through a jump host and I never could get it to connect seamlessly. It seems like it ought to, but when vscode just works with my ssh config, I decided debugging it was not a good use of my time. Might have something to do with being on a Mac, idk.
replies(4): >>44357207 #>>44357418 #>>44357476 #>>44361649 #
jerf ◴[] No.44357476[source]
I think that in general, if you're doing anything fancy with SSH, you're better off setting it up in SSH than trying to convince Tramp to do anything with it. See something like https://wiki.gentoo.org/wiki/SSH_jump_host . Basically, the goal is you should be able to type "ssh someSSHConfig" and get to the shell of the device. If you can do that, you don't need to worry about what Tramp can and can't do, and if SSH adds a feature that works in the SSH config you don't even have to wonder if Tramp can use it.

And then it also works with everything else that works with SSH.

replies(1): >>44362051 #
jonnycomputer ◴[] No.44362051[source]
Oh I have .ssh/config like:

    Host vm3
    User myusername
    HostName the-host-name
    ProxyCommand ssh -W %h:%p myusername@jump.host.address

So will jump through automatically using my ssh keys. Its very convenient. But Tramp doesn't seem to respect that configuration, or demands that I use a password instead of the ssh keys (its been awhile since I've last tried, so I kinda am dim on the details of what was the hassle)
replies(2): >>44362101 #>>44364942 #
1. pabs3 ◴[] No.44364942[source]
ISTR ProxyJump is in some way better than ProxyCommand btw.