On 30.11.2017 07:57, Mark Reynolds wrote:
Hello,
Is there a cockpit API/feature that allows you to copy files from one
machine to another (like scp)? I didn't seen anything in the docs. I
could do a cockpit.spawn and use scp that way(I think), but I'm
wondering if there is a better way.
It doesn't have something like that. At least not yet :)
However the SSH agent that's started by Cockpit (and interacted with via
the top rigth corner menu) is available to anything running in the
Cockpit session. That means using scp should be straightforward if the
SSH agent is populated.
Cheers,
Stef