Re: How to scp to machine with no root account?

From: Hrvoje Spoljar (fcbyr_at_k.cos.ue)
Date: 01/08/05

  • Next message: Robert: "Re: IPTABLES FOR TRAFFIC MONITORING"
    Date: Sat, 8 Jan 2005 04:11:30 +0000 (UTC)
    
    

    Charlie Zender <zender@uci.edu> na grupi comp.os.linux.security pise:
    > 1. Is there a "better" way?

    There is another way...
    $ls file
    file
    $tar cvf - file | ssh somehost -l someuser "cd somedir;tar xvf -"

    the above will copy file from the host to somehost in some dir...

    if you want to fetch file from somehost it can be done like this

    $ssh somehost -l someuser "cd path/to/file;tar cvf - file" |tar xvf -

    -- 
     ____ __  ___| |  ___   Ignorance is    .~.    hrvoje.spoljar@><.pbf.hr
    (_-< '_ \/ _ \ |_/ -_)  bliss, but     / V \   irc # RoCkY 
    /__/ .__/\___/__/\___|  knowledge is  /(   )\  icq : 53000945   
       |_|                  power!          ^-^    http://spole.pbf.hr
    

  • Next message: Robert: "Re: IPTABLES FOR TRAFFIC MONITORING"