Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

Having trouble running a scan with Scap workbench after upgrade to 1.2.1 #273

Open
dashiver opened this issue Mar 9, 2021 · 3 comments
Open

Comments

@dashiver
Copy link

dashiver commented Mar 9, 2021

Can't connect to remote machine! Exception was: There was a problem with SshConnection! Failed to create SSH master socket! Diagnostic info: Starting process '/usr/bin/ssh -M -f -N -o ServerAliveInterval=60 -o ControlPath=/private/var/folders/1c/1b2prljx3nl34j3p_y4cj3jm0000gq/T/scap-workbench-orOcns/ssh_socket -p 22

The previous version 1.1.5.1 works just fine

Any ideas to remedy?

@nevada-american
Copy link

Same.

@ggbecker
Copy link
Member

Can you provide which version you are having this issue?

Also pasting the generated ssh line from both working/non-working versions might help. There was a change with how this temporary ControlPath folder is created in #239.

Additionally, does the user running scap-workbench have write access to the specified folder for ControlPath?

@nevada-american
Copy link

v1.2.1 on Mac OS X 10.15.7
I don't have a 'working' instance to share the SSH line from a successful run.

Can't connect to remote machine! Exception was: There was a problem with SshConnection! Failed to create SSH master socket! Diagnostic info: Starting process '/usr/bin/ssh -M -f -N -o ServerAliveInterval=60 -o ControlPath=/private/var/folders/h8/6nmnr5797jd0fk8sv0nnwz80000cr4/T/scap-workbench-ppvYnQ/ssh_socket -p 22 root@rocky-linux-8-test' Starting process '/usr/bin/ssh -M -f -N -o ServerAliveInterval=60 -o ControlPath=/private/var/folders/h8/6nmnr5797jd0fk8sv0nnwz80000cr4/T/scap-workbench-ppvYnQ/ssh_socket -p 22 root@rocky-linux-8-test' stdout: =============================== stderr: =============================== * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * Authorized Use Only This system is solely for the use of authorized users for official purposes. In order to protect authorized users of this system and to ensure that the system is functioning properly, said system is monitored and subject to any and all necessary analysis by IS personnel. Use of this system evidences an express consent to such monitoring and agreement that if such monitoring reveals evidence of possible abuse or criminal activity, system personnel may provide the results of such monitoring to appropriate officials. unix_listener: path "/private/var/folders/h8/6nmnr5797jd0fk8sv0nnwz80000cr4/T/scap-workbench-ppvYnQ/ssh_socket.ehm4HSENc2EedosN" too long for Unix domain socket

It appears I have r/w access to the relevant ControlPath:

chromium:(edm)/private/var/folders/h8/6nmnr5797jd0fk8sv0nnwz80000cr4/T/scap-workbench-ppvYnQ> touch test
chromium:(edm)/private/var/folders/h8/6nmnr5797jd0fk8sv0nnwz80000cr4/T/scap-workbench-ppvYnQ> ls -la test
-rw-r--r-- 1 edm staff 0 Jun 30 07:34 test
chromium:(edm)/private/var/folders/h8/6nmnr5797jd0fk8sv0nnwz80000cr4/T/scap-workbench-ppvYnQ>

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants