Is it possible to create a single SSH tunnel to address a remote host like it was sitting on the local system, eg. type the following pseudo-examples locally and achieve the desired effect:
- Copy databases:
mysqldump remote | mysql local
ormysqldump local | mysql remote
- Append text to remote files:
echo blah >> remote:file.txt
- Change remote files:
sed ... remote:file.txt
- Execute remote commands:
apk add blah
If a single connection is not possible, what is the most convenient way to achieve these things?