Edit remote files in Emacs with Tramp mode
https://www.gnu.org/software/tramp/ TRAMP stands for “Transparent Remote (file) Access, Multiple Protocol”. A remote file name always looks like /method:user@host:/path/to/file. Examples: Opening a remote file via ssh C-x C-f /ssh:user@host:/path/to/file Use sudo to open a file with root permissions C-x C-f /sudo:root:/path/to/file sudo uses root as the default user name, therefore it can also be opened as /sudo::/path/to/file Access a remote file using the SMB protocol C-x C-f /smb:user%domain@host:/path/to/file