WFH server remote connection kit

reconnect:

  • mosh + tmux cc/screen

code/data sync-up btw server and local

  • minor changes at one part:

    • vim/emacs directly

  • changes at multiple parts :

    • echo -n & nano (nano has less latency than vim)

    • rsync

fswatch -o local-dir | while read f; do

rsync -azP local-dir/ server:path/to/remote/dir

done

    • web based (edit at jupyter tree)

SSH Multiplexing: skip authenticate(even under two factor authentication) in a session (use it cautiously)

in the ~/.ssh/config,

add

Match host my-server.my-domain.com

ControlMaster auto

ControlPath ~/.ssh/ctrl-%C

ControlPersist yes

ssh tunnel setup:

Match host my-server.my-domain.com

# Jupyter Notebook

LocalForward 8898 localhost:8898

# Tensorboard

LocalForward 6016 localhost:6016

data transfer and backup:

  • sftp

  • rclone

Last updated