I have in my
~/.ssh/config file entries with local forward definitions like
HOST myServer hostname 10.10.0.1 user xyz LocalForward 8080 localhost:80 LocalForward 4000 127.0.0.1:4000 ...
This works like a charm, but I also have scripts to synchronize some data.
These scripts show many warnings when they try to connect to the server while there is already a connection.
bind: Address already in use channel_setup_fwd_listener_tcpip: cannot listen to port: 8080 bind: Address already in use channel_setup_fwd_listener_tcpip: cannot listen to port: 4000 ....
Is there a neat way to use
rsync with an option to disable all local forwards for a session?
Obviously I could copy&paste each config block and build one with and one without local forwards, but I hope there is a better solution.