LinuxQuestions.org
Help answer threads with 0 replies.
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,188
Blog Entries: 4

Rep: Reputation: 219Reputation: 219Reputation: 219
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,188
Blog Entries: 4

Rep: Reputation: 219Reputation: 219Reputation: 219
Happy New Year
 
  


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 02:47 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration