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 1219119 - remote port number not fully configurable
Summary: remote port number not fully configurable
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: scap-workbench
Version: 6.7
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Martin Preisler
QA Contact: Marek Haicman
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-05-06 15:54 UTC by Martin Žember
Modified: 2016-05-10 21:05 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-10 21:05:12 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2016:0818 0 normal SHIPPED_LIVE scap-workbench bug fix and enhancement update 2016-05-10 22:39:49 UTC

Description Martin Žember 2015-05-06 15:54:34 UTC
Description of problem:
scap-workbench tries to connect to port 22 when remote scanning through SSH even when a non-standard port is specified. Maybe this is the bug that you (Martin) told me about, I do not know, now the scan starts correctly, but some operations AFTER the scan use the port 22.

Version-Release number of selected component (if applicable):
scap-workbench-1.0.3-2.el6

How reproducible:
Always

Steps to Reproduce:
1. choose any profile, e.g. the STIG profile
2. do tailoring so that it does not take so long if you like to
3. specify "remote machine (over ssh) and change port from 22 to something else, e.g. 1222 and start the scan
4. wait for results or for an error window to rise

Actual results:
errors

Expected results:
no errors like those below (port 22: Network is unreachable)

Additional info:
17:01:48 | info     | Establishing connecting to remote target...
17:01:52 | info     | Connection established.
17:01:53 | info     | Querying capabilities on remote machine...
17:01:53 | info     | Copying input data to remote target...
17:01:53 | info     | Starting the remote process...
17:01:53 | info     | Processing on the remote machine...
QObject: Cannot create children for a parent that is in a different thread.
(Parent is OscapScannerRemoteSsh(0x2afd9e0), parent's thread is QThread(0xb3a7e0), current thread is QThread(0x1d51f50)
17:02:32 | warning  | Failed to copy back XCCDF results. You will not be able to save this data! Diagnostic info: Starting process 'Remote command 'cat /tmp/tmp.bjsg0OrOVR' on machine 'root@localhost''
Starting process 'Remote command 'cat /tmp/tmp.bjsg0OrOVR' on machine 'root@localhost''
stdout:
===============================

stderr:
===============================
ssh: connect to host localhost port 22: Network is unreachable


QObject: Cannot create children for a parent that is in a different thread.
(Parent is OscapScannerRemoteSsh(0x2afd9e0), parent's thread is QThread(0xb3a7e0), current thread is QThread(0x1d51f50)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is OscapScannerRemoteSsh(0x2afd9e0), parent's thread is QThread(0xb3a7e0), current thread is QThread(0x1d51f50)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is OscapScannerRemoteSsh(0x2afd9e0), parent's thread is QThread(0xb3a7e0), current thread is QThread(0x1d51f50)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is OscapScannerRemoteSsh(0x2afd9e0), parent's thread is QThread(0xb3a7e0), current thread is QThread(0x1d51f50)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is OscapScannerRemoteSsh(0x2afd9e0), parent's thread is QThread(0xb3a7e0), current thread is QThread(0x1d51f50)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is OscapScannerRemoteSsh(0x2afd9e0), parent's thread is QThread(0xb3a7e0), current thread is QThread(0x1d51f50)
QObject: Cannot create children for a parent that is in a different thread.
(Parent is OscapScannerRemoteSsh(0x2afd9e0), parent's thread is QThread(0xb3a7e0), current thread is QThread(0x1d51f50)
17:02:32 | warning  | Failed to copy back XCCDF report (HTML). You will not be able to save this data! Diagnostic info: Starting process 'Remote command 'cat /tmp/tmp.GQDRQM2wLd' on machine 'root@localhost''
Starting process 'Remote command 'cat /tmp/tmp.GQDRQM2wLd' on machine 'root@localhost''
stdout:
===============================

stderr:
===============================
ssh: connect to host localhost port 22: Network is unreachable


17:02:32 | warning  | Failed to copy back Result DataStream (ARF). You will not be able to save this data! Diagnostic info: Starting process 'Remote command 'cat /tmp/tmp.fps0csUPq7' on machine 'root@localhost''
Starting process 'Remote command 'cat /tmp/tmp.fps0csUPq7' on machine 'root@localhost''
stdout:
===============================

stderr:
===============================
ssh: connect to host localhost port 22: Network is unreachable


17:02:34 | info     | Cleaning up...
17:02:34 | warning  | Failed to remove remote file input file. Diagnostic info: Starting process 'Remote command 'rm /tmp/tmp.GU7op73Luc' on machine 'root@localhost''
Starting process 'Remote command 'rm /tmp/tmp.GU7op73Luc' on machine 'root@localhost''
stdout:
===============================

stderr:
===============================
ssh: connect to host localhost port 22: Network is unreachable


17:02:34 | warning  | Failed to remove remote file tailoring file. Diagnostic info: Starting process 'Remote command 'rm /tmp/tmp.dNCSLdlgkB' on machine 'root@localhost''
Starting process 'Remote command 'rm /tmp/tmp.dNCSLdlgkB' on machine 'root@localhost''
stdout:
===============================

stderr:
===============================
ssh: connect to host localhost port 22: Network is unreachable


17:02:34 | warning  | Failed to remove remote file XCCDF result file. Diagnostic info: Starting process 'Remote command 'rm /tmp/tmp.bjsg0OrOVR' on machine 'root@localhost''
Starting process 'Remote command 'rm /tmp/tmp.bjsg0OrOVR' on machine 'root@localhost''
stdout:
===============================

stderr:
===============================
ssh: connect to host localhost port 22: Network is unreachable


17:02:34 | warning  | Failed to remove remote file XCCDF report file. Diagnostic info: Starting process 'Remote command 'rm /tmp/tmp.GQDRQM2wLd' on machine 'root@localhost''
Starting process 'Remote command 'rm /tmp/tmp.GQDRQM2wLd' on machine 'root@localhost''
stdout:
===============================

stderr:
===============================
ssh: connect to host localhost port 22: Network is unreachable


17:02:34 | warning  | Failed to remove remote file Result DataStream file. Diagnostic info: Starting process 'Remote command 'rm /tmp/tmp.fps0csUPq7' on machine 'root@localhost''
Starting process 'Remote command 'rm /tmp/tmp.fps0csUPq7' on machine 'root@localhost''
stdout:
===============================

stderr:
===============================
ssh: connect to host localhost port 22: Network is unreachable


17:02:34 | warning  | Failed to remove remote directory Temporary Working Directory. Diagnostic info: Starting process 'Remote command 'rm -rf /tmp/tmp.SRdw49eBVD' on machine 'root@localhost''
Starting process 'Remote command 'rm -rf /tmp/tmp.SRdw49eBVD' on machine 'root@localhost''
stdout:
===============================

stderr:
===============================
ssh: connect to host localhost port 22: Network is unreachable


17:02:34 | info     | Processing has been finished!

Comment 6 Marek Haicman 2016-03-21 21:20:59 UTC
Version scap-workbench-1.1.1-1.el6 correctly connects to the designated port.


stdout: =============================== 
stderr: =============================== 
ssh: connect to host localhost port 223: Connection refused

Comment 8 errata-xmlrpc 2016-05-10 21:05:12 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHEA-2016-0818.html


Note You need to log in before you can comment on or make changes to this bug.