hierynomus / hierynomus/sshj

Need to transfer output of tar command directly to host without saving the file

Open
#719 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.7k
Forks
620
Avg merge
3d 23h
Merged PRs (30d)
11

Description

Hello @hierynomus ,

I need support to get the output of a tar command directly on my host machine without the need to save the large file on the target. Is there a way to do this as in pipes or something similar using SSHJ ?

In cmd I can do it with something like:

ssh root@localhost tar czf - /tmp > C:\somedirectory\test.tar

I need to do the same using SSHJ

Thanks in advance,

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.