Skip to content

HamzaAnis/checkSSH

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages