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 |
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. |
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:
PHP Code:
Thanks again. |
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. |
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 |
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. |
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. |
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. |
Quote:
|
All times are GMT -5. The time now is 10:09 AM. |