Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1591305

Summary: Cannot connect to remote SFTP server on RHEL 7 using proxy - Ncat: Invalid proxy type "socksv5". QUITTING.
Product: Red Hat Enterprise Linux 7 Reporter: SHAURYA <sshaurya>
Component: nmapAssignee: Pavel Zhukov <pzhukov>
Status: CLOSED NOTABUG QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: high Docs Contact:
Priority: high    
Version: 7.4   
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-06-14 15:15:38 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description SHAURYA 2018-06-14 13:54:28 UTC
Description of problem:

Customer was able to connect to the proxy server earlier using "nc" binary supports socks 5, with this syntax  " -X 5 ".

Version-Release number of selected component (if applicable):
nmap-ncat-6.40-13.el7.x86_64.rpm

How reproducible:

Always

Steps to Reproduce:

-bash-4.2$ /usr/bin/sftp -oIdentityFile=/home/ftpfile/procdev/eProc/.ssh/id_rsa -oProxyCommand='/usr/bin/nc --proxy proxy2.asiandevbank.org:1080 %h %p --proxy-type socksv5' adb-test.com 22
Ncat: Invalid proxy type "socksv5". QUITTING.
ssh_exchange_identification: Connection closed by remote host
Couldn't read packet: Connection reset by peer


Reference Bug - https://bugzilla.redhat.com/show_bug.cgi?id=1460249

Comment 2 Miroslav Lichvar 2018-06-14 15:10:01 UTC
It seems the --proxy-type options accepts "http", "socks4" and "socks5". The command line probably just needs to change "socksv5" to "socks5".

Comment 3 Pavel Zhukov 2018-06-14 15:15:38 UTC
Thank you Miroslav.