-
The StackOverflow discussion What's ssh port forwarding and what's the difference between ssh local and remote port forwarding [duplicate] has a good visual comparison/explanation of the difference between the
ssh -L
(-L
stands for local) andssh -R
(-R
stands for remote). -
sshtunnel is a Python implementation of SSH …
Operate Remote Servers Using SSH
General Tips and Traps
-
The permissions of the directory
~/.ssh
and its subcontents on both the local machine and the remote server must be properly set in order for SSH login via public key to work. A good pratice is to set the permission of~/.ssh
to700
(on both …
Manage Docker Images and Containers
Remove Containers
Note that running containers will NOT be removed by default.
This is what users want generally speaking.
You can use the option -f
to force removing running containers,
but use it with caution …
Take Screenshot on Linux
ksnip
Ksnip is a Qt-based cross-platform screenshot tool that provides many annotation features for your screenshots. It is one of the best screenshot applications.
Installation Using snap
sudo snap install ksnip
flameshot
Flameshot is a simple cross-platform screenshot software.
Shutter
Shutter is a good screenshot application for Linux (only).
Docker in WSL 2
Tips and Traps
-
Docker on WSL 2 works great. However, the performance of IO is extremely bad if it access the Windows filesystem. For more discussions, please refer to WSL 2 Filesystem .
-
Docker containers launched from a WSL (e.g., Ubuntu) shell will continue to run after the WSL shell …
Make Linux Run Faster
Benchmark Tools for Linux
phoronix-test-suite is currently the best benchmark tool for Linux. You can use it to figure out the bottleneck of performance of your Linux machine. Please refer to Benchmark Your Linux Machine Using phoronix-test-suite for more discussions.
BCC is a toolkit for creating efficient kernel tracing and …