Patching identity for gateway in sshfuncs. Patch provided by Damien Saucez