?
SolvedPrivate

SCP Syntax

Posted on 2013-01-25
3
Medium Priority
?
52 Views
Last Modified: 2016-02-11
Could someone please help me with the exact command I need to use to transfer a file using SCP ?

I have never used SCP before, nor have I ever logged into a UNIX box.

I want to transfer a file called junos-jsr-10.0R4.7-export.tgz from my root of my Macbook Pro Hard Drive @ 172.16.99.57  to /var/tmp on a FreeBSD server @ 172.16.35.134.  There is IP connectivity between the two hosts.

What command do I enter, and do I enter it on the Macbook Pro or on the FreeBSD server ?

No doubt sounds simple to you all but I have no clue. ;) - Thankyou.
0
Comment
Question by:Suncore
[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 48

Accepted Solution

by:
Tintin earned 2000 total points
ID: 38821357
On your Macbook Pro use


scp  junos-jsr-10.0R4.7-export.tgz username@172.16.35.134:/var/tmp


Or on the FreeBSD server, do

scp username@172.16.99.57:/path/to/ junos-jsr-10.0R4.7-export.tgz /var/tmp
0
 
LVL 2

Author Comment

by:Suncore
ID: 38821374
Hello Tintin - thanks for helping me.

This is the result from my Macbook Pro:

Pauls-MacBook-Pro:~ Paul$ scp junos-jsr-10.0R4.7-export.tgz root@172.16.35.134:/var/tmp
Password:
Connection to 172.16.35.134 closed by remote host.
lost connection
Pauls-MacBook-Pro:~ Paul$


I see the following on the server:

sshd[208]: fatal:monitor_read: unsupported request: 24

Could you tell me what I am doing wrong please?
0
 
LVL 2

Author Closing Comment

by:Suncore
ID: 38822684
Thanks Tintin for solving this for me.  Your commands worked great once I used an account other than root to make the connection.  Appreciate your time.
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
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 video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
Suggested Courses

764 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