The problem is that when connecting using a control socket, it's not printed the line like:
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
So the variable REMOTE_VERSION is not set.
The problem is that when connecting using a control socket, it's not printed the line like:
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
So the variable REMOTE_VERSION is not set.