Re: How to scp to machine with no root account?
From: Tim Haynes (usenet-20050107_at_stirfried.vegetable.org.uk)
Date: 01/07/05
- Next message: Kunael: "Re: IPTABLES FOR TRAFFIC MONITORING"
- Previous message: Mike Marsh: "Re: How to scp to machine with no root account?"
- In reply to: Bill Unruh: "Re: How to scp to machine with no root account?"
- Next in thread: Hrvoje Spoljar: "Re: How to scp to machine with no root account?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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/ |
- Next message: Kunael: "Re: IPTABLES FOR TRAFFIC MONITORING"
- Previous message: Mike Marsh: "Re: How to scp to machine with no root account?"
- In reply to: Bill Unruh: "Re: How to scp to machine with no root account?"
- Next in thread: Hrvoje Spoljar: "Re: How to scp to machine with no root account?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|