Wednesday, May 27, 2015

Copy files from remote server


$ echo arplnxsje25 | while read host; do echo $host; scp -q -o ConnectTimeout=3 $host:/etc/passwd /tmp/$host.pw;  scp -q -o ConnectTimeout=3  $host:/etc/group /tmp/$host.gp; done

ssh options
-q -o ConnectTimeout=3 -t

No comments:

Post a Comment