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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...