38
loading...
This website collects cookies to deliver better user experience
ssh -L 8080:localhost:3000 office_pc
.localhost:3000
on the remote host. This way I can just use an existing SSH connection to tunnel HTTP traffic to my office PC.tmux
. For those who don't know this incredible tool: It is very similar to screen
, in that it lets you open, detach from and later attach to shell sessions, while also supporting tiling panes and windows (tabs, basically).tmux
command, I'd then just attach directly to it remotely using ssh office_pc -t tmux a
, where -t
is necessary for running commands interactively in SSH and a
is short for "attach".rsync
to copy files (or whole directories) to and from remote hosts over (did you guess it?) SSH. Simply call it as rsync office_pc:path/to/file Downloads/
to copy a remote file to your Downloads folder. The same works the other way around: rsync Downloads/file office_pc:path/to/
to upload a file.zsh
(probabl bash
too) you even get tab-completion for remote files and directories, albeit a bit slower than for their local counterparts.sshfs
program, you can easily mount a remote directory into your local filesystem, so you can easily open and modify files from some remote location.sshfs office_pc:workspace workspace
to mount my remote "workspace" folder over the local one. If I already have some files in my local workspace, I can just throw in a -o nonempty
at the end and it will mount over the existing files (shadowing them until I unmount the directory again).sudo
once the program itself is installed. To unmount, simply use umount
as with any other mounted directory.38