I don't know what's the big deal, I could have just manually copy the public key over to the remote server once, then I can login without providing the password, since I have the private key. Even if you are doing this once, you still have to distribute the public keys over to your remote server. I've just done it using Expect to run scp command, save a lot of time. But if you know of anything else like expect that would allow me to provide the password to scp in a script fashion, please let me know.
Just one thing with Expect, is there a way to NOT show the password on the screen as it run? If not, then is there a way to make it show up like xxxxx, but still pass the password over to scp.
Thanks.