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

From: Tim Haynes (usenet-20050107_at_stirfried.vegetable.org.uk)
Date: 01/07/05


Date: Fri, 07 Jan 2005 16:31:08 +0000

unruh@string.physics.ubc.ca (Bill Unruh) writes:

>>scp /etc/foo target.domain.edu:/etc/foo (yields "Permission denied")
>>sudo scp /etc/foo target.domain.edu:/etc/foo (asks for password but
>>never accepts password)
>
> scp /etc/foo target:/tmp/foo
> ssh target
> cp /tmp/foo /etc/foo
> exit

Beware of your umask when doing that sort of thing.

Alternatively, set
    PermitRootLogin without-password
in sshd_config and generate a proper keypair.

~Tim

-- 
   16:29:03 up 10 days,  6:10,  1 user,  load average: 0.69, 0.29, 0.15
piglet@stirfried.vegetable.org.uk |There can be only one!
http://spodzone.org.uk/cesspit/   |


Relevant Pages

  • Re: Bumper Sticker
    ... >> thing in the bar after Luke slipped Merle some sort of acid, ... >Are you referring to the "frumious Bandersnatch?" ... >Beware the Jabberwock, my son! ... The bar turns into an Alice in Wonderland scene, ...
    (rec.bicycles.misc)
  • Beware cheap coverslips - how to clean glass!
    ... they are of dreadful quality and are covered ... with some sort of residue. ... Beware! ...
    (sci.techniques.microscopy)
  • Re: Klob VIDEO and pictures
    ... will be pulled untill I can sort out some proper FTP buisness. ... should take a wile to DL so beware. ...
    (uk.tech.rocketry)
  • Re: Hill House Nurseries
    ... "The Hill House Crew "are pretty vicious with your sort. ... Beware that one called Sacha -she's a devil with a fork. ...
    (uk.rec.gardening)
  • Re: how to let new touched file have executable attribute without using chmod
    ... >> I found that umask cannot do it. ... Sort of. ... umask doesn't determine what attributes a file will have; it specifies what ... not my employers') ...
    (comp.os.linux.misc)