I am running a test script where files needs to be copied to the target embedded system.But when this command of copying the files to remote target system is run from the sc
The right way to do this is with key-based authentication. Read about it here.
If that link ever breaks, just google it: "ssh passwordless" or "ssh key authentication". Despite Toby's comment, I think linking to or instructing how to search it yourself is better than repeating what others can say better and in more depth than I can.