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
Solved

scp syntax

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

Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

Question has a verified solution.

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

Suggested Solutions

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

837 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