Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] authorized_keys: No such file or directory #203

Closed
smileitjc opened this issue Jun 22, 2021 · 1 comment · Fixed by #213
Closed

[Bug] authorized_keys: No such file or directory #203

smileitjc opened this issue Jun 22, 2021 · 1 comment · Fixed by #213
Assignees
Labels
bug Something isn't working

Comments

@smileitjc
Copy link

smileitjc commented Jun 22, 2021

Describe the bug
When using ./add-scanner.sh to create a remote scanner on the host, I get the error "./add-scanner.sh: line 12: /data/scanner-ssh-keys/authorized_keys: No such file or directory".

To Reproduce
Steps to reproduce the behavior:

  1. run command "docker exec -it gvm ./add-scanner.sh
  2. Input scanner Name
  3. Input scanner ID
  4. Input scanner Public Key
  5. See Error.

Expected behavior
The scanner is added, but I am getting the below on the remote scanner I presume because the key isn't being saved and therefore isn't an authorized key:

On the remote scanner:
==> /usr/local/var/log/gvm/ssh-connection.log <==
Permission denied, please try again.
Permission denied, please try again.
gvm@192.168.x.x: Permission denied (publickey,password).

Host Device:

  • OS: Ubuntu
  • Version: 20.04 LTS

Additional context
Command used to add remote scanner:

docker run --detach --volume scanner:/data --env MASTER_ADDRESS=192.168.[removed].[removed] --env MASTER_PORT=22 --name scanner securecompliance/openvas
8f1ef9729a338983b2858a288b65ac23c5354c32aab2269789742d57bc016ade

@smileitjc smileitjc added the bug Something isn't working label Jun 22, 2021
@Dexus Dexus mentioned this issue Jul 1, 2021
2 tasks
@Dexus
Copy link
Contributor

Dexus commented Jul 4, 2021

Fixed via 7378f27

Will also fixed via #213

@Dexus Dexus closed this as completed Jul 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants