Solved

scp syntax

Posted on 2006-06-14
3
1,517 Views
Last Modified: 2008-02-01
I need to copy a file from a linux server to a linux workstation.  I can putty into each machine from my windows desktop.

using the following command, I am then asked for a password and after entering the password

scp ./file user@192.168.1.x:/home/user/file

I get the following error

bash: line 16: ll: command not found

0
Comment
Question by:CME-IT
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
brettmjohnson earned 500 total points
ID: 16904761
It sounds like scp is either an alias or some shell script on your path.  Run the command
   which scp

It should be /usr/bin/scp  (or /usr/local/bin/scp, depending upon your distribution).

0
 

Author Comment

by:CME-IT
ID: 16904789
it is /usr/bin/scp
0
 

Author Comment

by:CME-IT
ID: 16905015
I had been told that the user had permissions and I was able to log on remotely as him, however, I could not scp with his login or password.  When I changed the user to root and gave the root password everything worked.

Thank-you for your input.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now