How to avoid ssh connection overheads in scp? -
i testing performance of scp command. want minimize overheads making tcp connection of ssh protocol inside scp.
how can open first ssh connection , reuse on time?
thanks help.
// should have said 1 way achieve zip files , send @ once, works when files available time. let's assume files generated in stream fashion in source side, , want send possible after generated.
// pleaser refer link answer found: (how reuse ssh connection speed remote login process) http://www.cyberciti.biz/faq/linux-unix-reuse-openssh-connection/
if copying many tiny files connection overhead comes play, try tar'ing on fly , sending instead.
try this:
tar zcvf - data | ssh user@server "cat > data.tar.gz"
you can drop z
if compression isn't desired/helpful too.
Comments
Post a Comment