[CentOS] chmodding SCP

Tue Feb 21 18:47:53 UTC 2012
Denniston, Todd A CIV NAVSURFWARCENDIV Crane <todd.denniston at navy.mil>

Turnbough, Bradley E. wrote:
> I have two machines, and I am trying to copy files from one to the other
> via SCP.
>>From a different machine, I'm trying to scp to that machine, but I'm
>> receiving an "access denied".
> My ssh key is in the authorized users file in the root profile.

So your setup is while setting at host1 you execute
scp root at host3:myfile root at host2:
and get "access denied"?

further I expect you are using ssh-agent.

if so, I expect it has something to do with scp dropping agent forwarding.
search 'scp agent forwarding'
I once found a script to work around it, but that is painful.