sshGate
sshGate copied to clipboard
Improve scpg command
Hello,
It would be very nice to improve scpg command to allow file copy between two servers.
Any idea ? Thx
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
- issue -> security if a user which has access to source but not to destination can use generated key.
Maybe there are other solutions :-)
Regards
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" ??