Skip to content

Latest commit

 

History

30 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

checkSSh

This checks in parallel if the ssh session can be possible on the list of hosts.

Input is yaml file in format

ip:
  - 192.168.1.X
  - 192.168.2.X
  - 192.168.1.X

The output is the sucess.log and error.log.

Import

go get github.com/HamzaAnis/checkSSH

Example

package main

import "github.com/HamzaAnis/checkSSH"

func main() {
	checkSSH.Perform("ip.yaml",10)
}

Here 10 go routines will run and check the sessions in parallel and append to the log files.

About

Read in different ip from the yaml files and check if ssh port is open for them.

Resources

Code of conduct

Stars

9 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages