On 3/23/10, chris (fool) mccraw <[email protected]> wrote: > On Tue, Mar 23, 2010 at 09:42, Aaron <[email protected]> wrote: >> I don't know if I'd suggest ssh'ing to the box -as- root. That seems like >> a >> bad idea. su - or sudo should do it... > > depends. if he's really trying to 'transfer files' as he said, > there's no way to su inside of sftp/scp.
What I always do in this case is.. scp file.txt [email protected]:/tmp Then after the file has been copied.. I ssh into the box.. su to root.....move the file where it needs to be.. With name and permissions set........... Or some variation on that.. YMMV Marvin _______________________________________________ PLUG mailing list [email protected] http://lists.pdxlinux.org/mailman/listinfo/plug
