3 ms·
If you avoid -f you can also chain commands knowing the second will only be run when ssh is finished running. Something I do often: ssh host.example -N -D 10
by zamadatix 3y ago
If you avoid -f you can also chain commands knowing the second will only be run when ssh is finished running. Something I do often:
ssh host.example -N -D 1080 && wall "Socks proxy to host.example closed."
The second command can be as complex as you want but a message in all terminals usually does the job for me.