Frederick Bartlett <[email protected]> writes: > Hello!
Hi Frederick, > Upon updating to Fedora 36, I discovered that I could not ssh into a > site I use for work. After some investigation, I discovered that I had > to roll back ssh to an earlier version. (Of course, I should convince > the owner of the server to update _his_ ssh, but that’s not going to > happen.) > > I now get into the server with an alias that expands to > > toolbox -c fedora-toolbox-32 run ssh -i ~/a.pem -o > ServerAliveInterval=5 -o ServerAliveCountMax=1 [email protected] > > This works fine; but now I want to use Emacs to edit files on that > server, and I’m getting the same errors that ssh gave me before my > hack. > > How can I convince Tramp to use an older ssh? You can declare your own method. Something like (untested) --8<---------------cut here---------------start------------->8--- (add-to-list 'tramp-methods '("myssh" (tramp-login-program "toolbox") (tramp-login-args (("-c" "fedora-toolbox-32") ("run") ("ssh") ("-i" "~/a.pem") ("-o" "ServerAliveInterval=5") ("-o" "ServerAliveCountMax=1") ("-l" "%u") ("-p" "%p") ("-e" "none") ("%h"))) (tramp-async-args (("-q"))) (tramp-remote-shell "/bin/sh") (tramp-remote-shell-login ("-l")) (tramp-remote-shell-args ("-c")))) --8<---------------cut here---------------end--------------->8--- Then you can access this host in Emacs with a file name "/myssh:[email protected]:/path/to/file", as usual. > Thanks for all your work! > Fred Best regards, Michael.
