SolvedPrivate

SCP Syntax

Posted on 2013-01-25
3
49 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 500 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

My previous tech tip, Installing the Solaris OS From the Flash Archive On a Tape (http://www.experts-exchange.com/articles/OS/Unix/Solaris/Installing-the-Solaris-OS-From-the-Flash-Archive-on-a-Tape.html), discussed installing the Solaris Operating S…
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
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 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.

726 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