’scp’ permission issue : simple fix!

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! :-)

Post to Twitter Tweet This Post

Related posts:

  1. Why are you getting 500 internal server error on your php pages
  2. CPM with Ubuntu Karmic compilation issue & solutions
  3. cPanel, postgresql and a default database issue with 8.4.x versions of postgres
  4. Do you know Bash & csh shell likes carrots ?

Comment Form

About this blog

This blog, acts as a knowledge repository for the world and is unofficial! Anything we find interesting in the cyber world will go here. Most cases, this blog will reflect the happiness of our staff in reaching successful solution to an issue (s)he worked on. A reference for other fellow SAGEs who come across similar issues later