?
Solved

scp syntax

Posted on 2006-06-14
3
Medium Priority
?
1,550 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 23

Accepted Solution

by:
brettmjohnson earned 2000 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

Python: Series & Data Frames With Pandas

Learn the basics of Python’s pandas library of series & data frames and how we can use these tools for data manipulation.

Question has a verified solution.

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

The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
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.
Suggested Courses
Course of the Month11 days, 9 hours left to enroll

752 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