[nycbug-talk] scp as a different user
Okan Demirmen
okan at demirmen.com
Thu May 4 13:32:36 EDT 2006
On Thu 2006.05.04 at 09:56 -0700, Steve Rieger wrote:
> question
>
>
> as "user_a" i run a script that creates "file", then i need to scp
> file user_b at localhost user_b at remot-host:~/
>
> i copied the public keys for user_b from local to remote, but since i
> am user_a i need to enter the password for user_b when running the
> scp command, is there any way around that.
because user_a can't read user_b's private key.
> (note i cant give out the keys to user_a)
do you have to use user_b from localhost to scp out? you can just create
another key pair for user_a and only have it used when ssh/scp'ing to
"remote-host".
...oh, just saw ray's mail - there are many ways ;)
okan
More information about the talk
mailing list