Published on: July 3, 2009 by Faheem P.
Scenario:
Issue:- Cannot spawn scp Permission denied
While trying to ‘scp’ files or directories between servers or machines, you may get the following error message:
Cannot spawn scp Permission denied
The fix for this error may be the simplest fix ever explained on this blog :-). This error is generated when ‘scp’ is executed by a non ‘root’ user. The solution is to login as ‘root’ and change the permission of ‘scp’ to 755.
execute the command
type scp
Result would be /usr/bin/scp
Now change the permission
chmod 755 /usr/bin/scp
Hey, you are done! 🙂
Category : Linux
Add new commentSIGN IN