News for hackers. Stuff that matters.
Re: by exec1 on Thursday August 31, 2023 @06:16PM (#37344357)
Is TRAMP similar to SSHFS?
Re: by Zambyte on Thursday August 31, 2023 @07:16PM (#37344807)
Similar, yes. It supports many more protocols than SSH though[0]. It also supports multi-hops, even across multiple protocols if it can[1]. So you could say: access a remote server over SSH, and then pivot to a Windows machine behind a firewall using Samba, all by simply specifying a file path to do that.

[0] https://www.gnu.org/software/tramp/tramp-emacs.html#Connecti...

[1] https://www.gnu.org/software/tramp/tramp-emacs.html#Ad_002dh...

Re: by chrchr on Thursday August 31, 2023 @07:38PM (#37344965)
It’s more like emacs-flavored RPC. You can edit files on remote hosts using TRAMP, and you can transparently execute processes on the remote host. If you’re editing a remote file and invoke, say, a compiler it will transparently run the compiler on the remote host against the remote file.
Re: by andreareina on Thursday August 31, 2023 @07:52PM (#37345069)
TRAMP is general access via ssh, e.g. you can also use it for executing binaries on the remote machine. In the case of remote files it does something like `base64 -D <(ssh remote base64 remote-file) > tempfile` for read and the inverse for write.