I have 3 linux servers - the first one is a dev machine (where I compile my binary), the second one is a "jumpbox" which helps me connect to a "testbed" - which is the place where I need to copy my binary.
Right now, I am doing something like this:
1) Copy my binary from devmachine to jumpbox with scp -r binary abc@jumpbox:/temp/
2) Log in to the jumpbox and copy the binary from jumpbok to testbed with scp -r binary abc@testbed:/bin/
Is there some way I can do the above 2 steps thru a single script?
I realize I will be forced to save my passwords in a file for that to work, but I am fine with it - I can always use encryption.