LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
 
Search this Thread
Old 12-25-2011, 11:28 PM   #1
mahao_boy
LQ Newbie
 
Registered: Sep 2011
Posts: 11

Rep: Reputation: Disabled
bash: scp: command not found


Hi all,

When i try to transfer some doc from one server to another, i met this problem.

[root@esjirp62 ~]# scp .bashrc esjirp62new:~/p62
root@esjirp62new's password:
bash: scp: command not found
lost connection
[root@esjirp62 ~]# which scp
/usr/bin/scp

Just in a few minutes ago, i was using scp and now it is not working any more.

Why is this happening?
 
Old 12-25-2011, 11:34 PM   #2
mahao_boy
LQ Newbie
 
Registered: Sep 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
...............!!!

I just fix this problem.

In remote server's /etc/bashrc file, i just did comment out "export PATH=$PATH:/usr/bin/..." this line.

As a result, no "scp" could be found in remote server, there is no scp command in PATH.

After remove the "#", now it is working.
 
1 members found this post helpful.
Old 12-26-2011, 01:09 AM   #3
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,190
Blog Entries: 4

Rep: Reputation: 220Reputation: 220Reputation: 220
good to know you found your solution

you should mark the thread as solved so that others can also utilize this
 
1 members found this post helpful.
Old 12-27-2011, 06:29 AM   #4
mahao_boy
LQ Newbie
 
Registered: Sep 2011
Posts: 11

Original Poster
Rep: Reputation: Disabled
Thanks for your reminding.



BR
&
Happy new year.
 
Old 12-27-2011, 06:30 AM   #5
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: rhel 5x,6.0,6.2, centOS 5x,6.0,6.2
Posts: 1,190
Blog Entries: 4

Rep: Reputation: 220Reputation: 220Reputation: 220
Happy New Year
 
Old 03-30-2015, 11:45 AM   #6
ferdienandp
LQ Newbie
 
Registered: Mar 2015
Posts: 2

Rep: Reputation: Disabled
Install openssh-clients

for Centos Linux, the answer should be to install openssh-clients

Last edited by ferdienandp; 03-30-2015 at 11:46 AM.
 
Old 03-30-2015, 12:18 PM   #7
rtmistler
Senior Member
 
Registered: Mar 2011
Location: Milford, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 2,074
Blog Entries: 8

Rep: Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739
Quote:
Originally Posted by ferdienandp View Post
for Centos Linux, the answer should be to install openssh-clients
Welcome to LQ, ferdienandp,

LQ should have alerted you that you were resurrecting a 3+ year old thread. The original poster long ago resolved this problem and posted that fact. They also marked the thread as SOLVED.

Best to read a few replies in the thread and take note of the most recent dates. Take note of the warning about a very old thread from the website too. I think anything over 6 months will alert you.
 
Old 03-30-2015, 01:05 PM   #8
ferdienandp
LQ Newbie
 
Registered: Mar 2015
Posts: 2

Rep: Reputation: Disabled
that is why i pointed out that for "Centos Linux" the answer as per my experience was to install ssh-client packages. I am not arguing with the past answer as it was correct. If my comment does not suits the ethics of this forum, you are free in any time to close/eject my account. Linux is Freedom! and not have only a single solution.

-ferdienandp

Last edited by ferdienandp; 03-30-2015 at 01:10 PM. Reason: I want to make a point that this is LINUX
 
Old 03-30-2015, 01:41 PM   #9
rtmistler
Senior Member
 
Registered: Mar 2011
Location: Milford, MA. USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu
Posts: 2,074
Blog Entries: 8

Rep: Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739Reputation: 739
This isn't about banning or discipline, your answer is fine and potentially additive. The thing about resurrecting very old posts is that not everyone can readily notice that it was old and they'll see this ongoing discussion, then suddenly you'll have a number of persons offering further suggestions or inquiring for clarification or updates on the OP's problem. When that problem was actually self-resolved many years ago and in fact the OP may not longer be viewing the forums at all, for instance if you search on posts made by the OP you last see any posts made back in 2012.

What is caused by resurrecting it means that this post gets brought to the forefront in the forum it is in, thus giving the appearance that there is activity related to the original problem. Or that someone encountered the problem anew and was asking further follow-up.

To me, it's a style choice. One can always start a new thread and refer back to this one and ask a further question. Offering added advice to a very old problem is maybe helpful, but if you look at what the OP did, they tinkered with the profile on their remote machine, thus causing a problem, once they reversed that tinkering, the problem went away.

Whatever, your advice is there, leave it, perhaps it will be of use to someone in the future. Or add more if you like.

There are helper things like the thread tools which will show you zero reply threads and for me when I browse forums the first page of the forum threads usually has the most currently active threads where people are actively working on resolving open problems.
 
  


Reply

Tags
scp


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 not found - (Not Installed ???) stuartornum Linux - Software 8 04-01-2014 09:01 AM
Bash: command not found! Adil_uk Linux - General 14 04-09-2012 01:04 AM
[SOLVED] bash: command not found rohit0825 Linux - Newbie 4 01-24-2010 05:31 PM
bash: command not found Pengye Linux - General 5 06-01-2008 11:57 PM
bash: rpm: command not found && sudo: alien: command not found Java_Code Ubuntu 7 07-27-2006 11:57 PM


All times are GMT -5. The time now is 05:17 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration