Re: How to scp to machine with no root account?
From: Hrvoje Spoljar (fcbyr_at_k.cos.ue)
Date: 01/08/05
- Previous message: prg: "Re: Security tutorials considered inadequate"
- In reply to: Charlie Zender: "How to scp to machine with no root account?"
- Next in thread: Bill Unruh: "Re: How to scp to machine with no root account?"
- Reply: Bill Unruh: "Re: How to scp to machine with no root account?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Previous message: prg: "Re: Security tutorials considered inadequate"
- In reply to: Charlie Zender: "How to scp to machine with no root account?"
- Next in thread: Bill Unruh: "Re: How to scp to machine with no root account?"
- Reply: Bill Unruh: "Re: How to scp to machine with no root account?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]