[Linux-disciples] scp'ing files to privileged locations

Stephen R Laniel steve at laniels.org
Tue Nov 1 17:33:25 EST 2005


I want to scp/rsync a file to a location in /etc on a remote
machine. Is there any way to do that without going through
this two-step?

scp filename remoteMachine:
ssh -t remoteMachine 'sudo mv ~/filename /etc/foo'

Assume that connecting to root at remoteMachine is impossible.

-- 
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20051101/cfa7f7a8/attachment.pgp


More information about the Linux-disciples mailing list