I have 1 input file contains username and hostname example:
ID1 host1
ID2 host2
ID3 host3
ID4 host1
Totally no script created yet.
My Question How I can make the script read username and do ssh based on host to do ssh.
ssh -q $host 'grep $user /etc/passwd'
and it looping until finish.
Thank you in advanced very Appreciate
script read the input file and read column 1 and column 2 as a input and then loop until the all line in the input are read.
do have
output , will show the result based on the input ID and do ssh to get the output.