LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-31-2007, 05:41 AM   #1
stuartornum
Member
 
Registered: Feb 2006
Posts: 44

Rep: Reputation: 15
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
 
Old 03-31-2007, 06:12 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
Old 03-31-2007, 06:24 AM   #3
stuartornum
Member
 
Registered: Feb 2006
Posts: 44

Original Poster
Rep: Reputation: 15
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.
 
Old 03-31-2007, 06:41 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
Old 03-31-2007, 06:46 AM   #5
stuartornum
Member
 
Registered: Feb 2006
Posts: 44

Original Poster
Rep: Reputation: 15
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
 
Old 03-31-2007, 06:56 AM   #6
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
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.
 
Old 02-17-2010, 09:36 AM   #7
jhoggatt
LQ Newbie
 
Registered: Feb 2007
Location: Texas
Distribution: Fedora 3, Fedora 12
Posts: 6

Rep: Reputation: 0
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.
 
Old 04-01-2014, 06:04 AM   #8
thato
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
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.
 
Old 04-01-2014, 09:01 AM   #9
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,188

Rep: Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064Reputation: 8064
Quote:
Originally Posted by thato View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
scp command zchoyt Linux - General 10 04-02-2014 07:47 AM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM
command of scp Paxmaster Linux - General 4 01-06-2005 12:59 PM
Samba 3.0.0 installed on RH WS3, but "net join" command not found chloevu Linux - Networking 0 07-13-2004 03:20 PM
Command not found when installed new software Egbert Linux - Software 1 02-19-2004 03:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration