Created attachment 1612 [details] Allow get_local_name() to handle a socket or pipe. If hostbased authentication is enabled and a proxy command is used to connect to the server, the following warning messages typically appear: cannot get sockname for fd ssh_keysign: no reply key_sign failed This is due to the assumption that the file descriptor passed to get_local_name() corresponds to a socket, which is not the case when a proxy command is used. The attached patch modifies get_local_name() sot that it falls back to using gethostname() if get_socket_address() fails. As a result, some redundant code in sshconnect2.c is removed. A typo is sshconnect2.c is also fixed. ('no installed' vs 'not installed')
Your patch has been applied and will be in the 5.4 release. Thanks.
With the release of 5.4p1, this bug is now considered closed.