SolvedPrivate

SCP Syntax

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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

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…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
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…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

691 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