Skip to content

Copy file? #15

@Migarl

Description

@Migarl

Hi!

I want to copy a file (.tgz) from my host to the server (scp isn't available).

I tried

final session = await client.execute("tar -zxf -");
session.write(filebytes);

but without success. I think the problem is that tar don't know when he should stop listening on stdin.

I got the same result with cat > file.tgz.

Is there a way to copy a file from host to remote without scp?

Thanks for your help!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions