vulsctl icon indicating copy to clipboard operation
vulsctl copied to clipboard

config.toml.remotescan - multiple host example

Open daniejstriata opened this issue 3 years ago • 2 comments

Hi,

How would multiple hosts be defined in the config.toml the example only shows one host. is servers able to be a group of hosts? How do you define each host?

[servers]
[servers.group1]
host        = "192.168.1.20"
port        = "22"
user        = "vuls"
keyPath     = "/root/.ssh/id_rsa"
host        = "192.168.1.21"
port        = "22"
user        = "vuls"
keyPath     = "/root/.ssh/id_rsa"

or

[servers]
[servers.host1]
host        = "192.168.1.20"
port        = "22"
user        = "vuls"
keyPath     = "/root/.ssh/id_rsa"
[servers.host2]
host        = "192.168.1.21"
port        = "22"
user        = "vuls"
keyPath     = "/root/.ssh/id_rsa"

~

daniejstriata avatar Jun 30 '21 08:06 daniejstriata

Hi! You can define hosts the latter way.

[servers]
[servers.host1]
host        = "192.168.1.20"
port        = "22"
user        = "vuls"
keyPath     = "/root/.ssh/id_rsa"
[servers.host2]
host        = "192.168.1.21"
port        = "22"
user        = "vuls"
keyPath     = "/root/.ssh/id_rsa"

segatomo avatar Jun 30 '21 08:06 segatomo

@segatomo Thanks. Can the example be updated for new users?

daniejstriata avatar Jun 30 '21 10:06 daniejstriata