Detecting failed port forwarding

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!


is it possible (in OpenSSH) to detect a failed port forwarding
(e.g. -D 1234 was specified on the ssh command line but another
application is already listening on that port) other than by
parsing stderr? My favourite solution would be to have ssh
exit with a non-zero return value in this case.

Kind regards

Ingolf Steinbach                       Jena-Optronik GmbH       ++49 3641 200-147
PGP: 0x7B3B5661  213C 828E 0C92 16B5  05D0 4D5B A324 EC04

Site Timeline