LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   scp: command not found - (Not Installed ???) (https://www.linuxquestions.org/questions/linux-software-2/scp-command-not-found-not-installed-542117/)

stuartornum 03-31-2007 05:41 AM

scp: command not found - (Not Installed ???)
 
Hi,

I have a slight problem,

My VPS (CentOS 4.4, Xen Based) doesn't seem to have scp installed?

I can ssh into the VPS but not transfer any file to or from the VPS via scp ???

Does anyone know how I can get scp working ?

Thanks

druuna 03-31-2007 06:12 AM

Hi,

Maybe I misunderstand, but you say you can ssh _into_ the VPS machine. I read that as from another machine to the VPS machine. If this is the case: Your VPS machine needs a running ssh Daemon (sshd), the other machine needs ssh/scp or a client that has both (I.e: putty/winscp/... if the other box is windows).

The sshd daemon seems to be running on the VPS machine (you can ssh to it), so that part should be ok.

If I misunderstood: Please tell us a bit more.

Hope this helps.

stuartornum 03-31-2007 06:24 AM

Hi druuna,

Thanks for the reply.

Sorry, hope this is more clear.

I can SSH into the VPS fine, I actually have two VPS's (both CentOS 4.4) one is working 100% (SSH, SCP etc all fine).

Just to be a bit more clear,

VPS1 = The VPS where SCP does *NOT* work
VPS2 = VPS where everything is working fine.

I have just issued "top" (VPS1) and sshd is running...

On my fully working VPS (VPS2) i did this:
PHP Code:

root@ns1 [~]# whereis scp
scp: /usr/bin/scp /usr/share/man/man1/scp.1.gz
root
@ns1 [~]

On the VPS1:
PHP Code:

bash-3.00# whereis scp
scp:
-
bash-3.00

Also, there is no file "scp" in /usr/bin/scp in this VPS1

Thanks again.

druuna 03-31-2007 06:41 AM

Hi,

It looks like scp isn't installed, but it can also not be in your PATH environment.

Try using which scp (only looks in all directories in your path setting) to find scp (whereis has its searchpath hardcoded). You could also try locate scp (locate database must be up-to-date) or find (find / -name "*scp*") the find command can take a while.

If all the above fail: scp isn't installed (correctly). Try reinstalling.

BTW: If both VPS1 and VPS2 are installed in the same way, both should have scp in the same location (/usr/bin).

Hope this helps.

stuartornum 03-31-2007 06:46 AM

Hi,

I have tried all the different search options you specified, still no luck :(

So im guessing too, its not installed.

I thought SCP was installed by default in CentOS ??

Now... reinstalling SCP...

How do I go about this, I have search the RPMS for an scp* but nothing there, neaither yum install scp ??

Thanks again druuna

druuna 03-31-2007 06:56 AM

Hi,

I'm not a centos user, but a quick look at their site reveals that they use openSSH (3.9p1).
Maybe this site will help: rpm's for centos/redhat-alike). This is the link to all available packages.

Hope this helps.

jhoggatt 02-17-2010 09:36 AM

scp command not installed/not found
 
I know this is an old post but I ran into the same problem today. I did not find any solutions on the web. Here is how I fixed the issue.

yum install openssh-clients

For whatever reason installing and re-installing openssh and openssh-server did not install the clients package that contains the scp and sftp commands.

thato 04-01-2014 06:04 AM

If during your installation you did a minimal install its possible that libedit-*.rpm might not have installed
try installing it and then installing openssh-client.

TB0ne 04-01-2014 09:01 AM

Quote:

Originally Posted by thato (Post 5144621)
If during your installation you did a minimal install its possible that libedit-*.rpm might not have installed
try installing it and then installing openssh-client.

This thread was originally opened seven years ago, and has been closed for four years now. And (re)installation of the openssh client software was the last thing posted.


All times are GMT -5. The time now is 10:09 AM.