Solved

scp syntax

Posted on 2006-06-14
3
1,531 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
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.

821 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