Giter VIP home page Giter VIP logo

Comments (7)

kotakanbe avatar kotakanbe commented on July 17, 2024

Would you try with -debug option?

from vuls.

jody-frankowski avatar jody-frankowski commented on July 17, 2024
DEBU[0000] SSH executed. cmd: /usr/bin/ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none @AAA -p  set -o
pipefail; ls /etc/debian_version, err: <nil>, status: 255
stdout:

stderr:
usage: ssh [-1246AaCfGgKkMNnqsTtVvXxYy] [-b bind_address] [-c cipher_spec]
           [-D [bind_address:]port] [-E log_file] [-e escape_char]
           [-F configfile] [-I pkcs11] [-i identity_file] [-L address]
           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
           [-Q query_option] [-R address] [-S ctl_path] [-W host:port]
           [-w local_tun[:remote_tun]] [user@]hostname [command]
[Jun 24 15:26:39] DEBUG [localhost] Not Debian like Linux. Host: AAA

from vuls.

kotakanbe avatar kotakanbe commented on July 17, 2024

Status 255 means unable to connect by ssh.
http://stackoverflow.com/questions/14885748/ssh-script-returns-255-error

Probabry, the sshd or ssh client version is old. What is the version of ssh client and sshd.
I think unknown option error is occurred while ssh.
Please try the ssh command that is printed in debug log on terminal.

from vuls.

kotakanbe avatar kotakanbe commented on July 17, 2024

https://github.com/future-architect/vuls/blob/master/scan/sshutil.go#L189

from vuls.

kotakanbe avatar kotakanbe commented on July 17, 2024

I looked carefully at debug log.

DEBU[0000] SSH executed. cmd: /usr/bin/ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -o ControlMaster=no -o ControlPath=none @AAA -p  set -o

Actually, Vuls executed below command.

/usr/bin/ssh @aaa

Probably the config is wrong.
Please define port, user, keypath of private key in config.toml.

[servers]

[servers.172-31-4-82]
host         = "172.31.4.82"
port        = "22"
user        = "username"
#keyPath     = "/home/username/.ssh/id_rsa"

from vuls.

kotakanbe avatar kotakanbe commented on July 17, 2024

I am going to add some validation to config.toml in the near future.

from vuls.

kotakanbe avatar kotakanbe commented on July 17, 2024

Added some validation.
#113

from vuls.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.