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/fileUse
sudoto open a file with root permissionsC-x C-f /sudo:root:/path/to/filesudousesrootas the default user name, therefore it can also be opened as/sudo::/path/to/fileAccess a remote file using the SMB protocol
C-x C-f /smb:user%domain@host:/path/to/file