日期:2014-05-16 浏览次数:20684 次
#!/bin/bash for ((i =0;i<1000;i++)) do scp -P 22 -r root@172.*.*.*:/$i /home/ done
root@192.168.200.207[root@localhost work]# ./test.sh scp: /0: No such file or directory scp: /1: No such file or directory scp: /2: No such file or directory scp: /3: No such file or directory ..... scp: /132: No such file or directory RSA_public_decrypt failed: error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01 key_verify failed for server_host_key scp: /134: No such file or directory ...... scp: /163: No such file or directory RSA_public_decrypt failed: error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01 key_verify failed for server_host_key RSA_public_decrypt failed: error:0407006A:rsa routines:RSA_padding_check_PKCS1_type_1:block type is not 01 key_verify failed for server_host_key scp: /166: No such file or directory .... scp: /183: No such file or directory scp: /184: No such file or directory