Is it doable?
+3
A:
Well, yes, it is. How about this?
scp pax@machine1:/tmp/qq pax@machine2:/tmp/qq
Either that's it, or I'm missing something fundamental in your question.
See:
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2
paxdiablo
2009-06-18 04:21:58
Password is needed at least I think..
Shore
2009-06-18 04:22:45
It uses the same methods as ssh (which in my case allows for pageant, the putty agent). See "man ssh" for non_windows methods including the use of /etc/[s]hosts.equiv and ~/.[rs]hosts.
paxdiablo
2009-06-18 04:28:39
@shore: It will prompt you for a password.
Dennis Williamson
2009-06-18 10:09:05
@Dennis, you're right but it checks the other methods first, If you have SSH trust set up between the two machines or an SSH key set up, it shouldn't prompt you.
paxdiablo
2009-06-18 10:42:02