sshGate icon indicating copy to clipboard operation
sshGate copied to clipboard

Improve scpg command

Open rvrignaud opened this issue 15 years ago • 2 comments

Hello,

It would be very nice to improve scpg command to allow file copy between two servers.

Any idea ? Thx

rvrignaud avatar Jan 03 '11 09:01 rvrignaud

Hi Romain,

I already think about solutions to make it possible but I don't stop on a good solution :

  • download file on gate and then upload it on target
    • issue -> problem for really big file and filesystem space
  • generate a sshkey pair, put the private key on the source and public key on the destination, then make a scp directly from source to destination host.
    • issue -> security if a user which has access to source but not to destination can use generated key.
      • solution of this issue -> can be deal with it by locking access on source, but they is a race condition :-/ OR we can put a passphrase on the generated key and display this pass to the user doing the scpg

Maybe there are other solutions :-)

Regards

Tauop avatar Jan 27 '11 16:01 Tauop

BTW, For the second solution, what the source and destination state (towards generated ssh keys) if the transfert is interrupted ? by the client ? by network ?

Besides, What to do if "source" can't reach "destination" ??

Tauop avatar Jan 27 '11 16:01 Tauop