Scottdob, I have tried you suggestion but I can't seem to figure out the proper syntax. Here is what I have put in the cf file.
" # toe in the water body common control { bundlesequence => { "main","copyFile" }; ignore_missing_bundles => "true"; require_comments => "true"; inputs => { "/var/cfengine/inputs/cfengine_stdlib.cf" }; } body server control { allowconnects => { "127.0.0.1" , "1.2.3" }; allowallconnects => { "127.0.0.1" , "1.2.3" }; trustkeysfrom => { "127.0.0.1" , "1.2.3" }; } bundle agent main { files: "/tmp/toe_in_water_folder_create/." comment => "main create dir", perms => mog("755", "user", "group"), create => "true"; "/tmp/toe_in_water_folder_create/toe_in_water_file_create.txt" comment => "main create file", perms => mog("666", "user", "group"), create => "true"; } bundle server access_rules() { access: "/tmp/toe_in_water_folder_create/" comment => "provide access to folder", admit => { "1.2.3.4" }; #or whatever IP address/address range you want to be able to access that directory } bundle agent copyFile { files: "/tmp/toe_in_water_folder_create/toe_in_water_file_copy.txt" comment => "copyFile copy main file", copy_from => local_cp("/tmp/toe_in_water_folder_create/toe_in_water_file_create.txt"); "/tmp/toe_in_water_folder_create/host_from_remote" comment => "copyFile copy from remote", skipidentify => "true", skipverify => { "1.2.3.4" }, copy_from => secure_cp("/etc/hosts","1.2.3.4"); } body copy_from mycopy(1.2.3.4,5.6.7.8) { servers => { "5.6.7.8" }; source => "1.2.3.4"; compare => "digest"; copy_backup => "true"; trustkey => "true"; }" Regards, j -----Original Message----- From: help-cfengine-boun...@cfengine.org [mailto:help-cfengine-boun...@cfengine.org] On Behalf Of no-re...@cfengine.com Sent: Tuesday, May 31, 2011 6:43 PM To: help-cfengine@cfengine.org Subject: Cfengine Help: Re: Cfengine Help: Cannot copy files to remote host Forum: Cfengine Help Subject: Re: Cfengine Help: Cannot copy files to remote host Author: scottdob Link to topic: https://cfengine.com/forum/read.php?3,22342,22343#msg-22343 secure_cp does not have a trustkey promise. It sounds like your hosts are having issues exchanging keys here is the copy body we use for secure copies body copy_from mycopy(from,server) { servers => {"$(server)"}; source => "$(from)"; compare => "digest"; copy_backup => "true"; trustkey => "true"; } _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine