Jump to content

scp using


mblanco2000
 Share

Recommended Posts

I am trying to use scp to move a file from a remote linux box to my local linux box. I ssh into the remote box and then issue the followiing command. I have read the man pages but still can not get the command right. Can someone please help.

 

scp -v backup.pst 163.188.18.167:/ &

[1] 6493

Executing: program /usr/bin/ssh host 163.188.18.167, user (unspecified), command scp -v -t /

OpenSSH_3.6.1p2, SSH protocols 1.5/2.0, OpenSSL 0x0090703f

debug1: Reading configuration data /etc/ssh/ssh_config

debug1: Applying options for *

debug1: Rhosts Authentication disabled, originating port will not be trusted.

debug1: Connecting to 163.188.18.167 [163.188.18.167] port 22.

 

MB

Link to comment
Share on other sites

The basic scp command is:

 

scp <remote> <local>

 

so to move /usr/local/test.txt from box1 to box2 (while sitting at box2) as user john...

 

scp john@box2:/usr/local/text.txt /usr/local/

 

Or if you are on box1:

 

scp /usr/local/text.txt john@box2:/usr/local/

 

 

 

Edit: fixed the box names.

Edited by youngmug
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...