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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
03-31-2007, 05:41 AM
|
#1
|
Member
Registered: Feb 2006
Posts: 44
Rep:
|
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
|
|
|
03-31-2007, 06:12 AM
|
#2
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
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.
|
|
|
03-31-2007, 06:24 AM
|
#3
|
Member
Registered: Feb 2006
Posts: 44
Original Poster
Rep:
|
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.
|
|
|
03-31-2007, 06:41 AM
|
#4
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
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.
|
|
|
03-31-2007, 06:46 AM
|
#5
|
Member
Registered: Feb 2006
Posts: 44
Original Poster
Rep:
|
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
|
|
|
03-31-2007, 06:56 AM
|
#6
|
LQ Veteran
Registered: Sep 2003
Posts: 10,532
|
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.
|
|
|
02-17-2010, 09:36 AM
|
#7
|
LQ Newbie
Registered: Feb 2007
Location: Texas
Distribution: Fedora 3, Fedora 12
Posts: 6
Rep:
|
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.
|
|
|
04-01-2014, 06:04 AM
|
#8
|
LQ Newbie
Registered: Jul 2009
Posts: 1
Rep:
|
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.
|
|
|
04-01-2014, 09:01 AM
|
#9
|
LQ Guru
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 27,188
|
Quote:
Originally Posted by thato
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 11:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|