Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

ssh user@host "nc -l 1234 | tar x -C dest_dir"

and in another terminal:

tar c . | nc -p host 1234

If you do not care about security, why not using rcp ?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: