Rex icon indicating copy to clipboard operation
Rex copied to clipboard

Do not set by default SSH port when using Net::OpenSSH (fix: 1495)

Open nfetisov opened this issue 3 years ago • 0 comments

(R)?ex can't parse complex OpenSSH configuration file, i.e. with host templates, includes, etc. Net::OpenSSH use OpenSSH library and handle complex .ssh/config right like OpenSSH itself.

So if (R)?ex can find port for SSH connection inside (simple plain) .ssh/config - let's use this port value, and if it can't - do not force port to 22/tcp so Net::OpenSSH can try to find it by itself (or failover to the same 22/tcp inside Net::OpenSSH).

nfetisov avatar Jun 22 '21 14:06 nfetisov