SolvedPrivate

SCP Syntax

Posted on 2013-01-25
3
40 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
  • 2
3 Comments
 
LVL 48

Accepted Solution

by:
Tintin earned 500 total points
Comment Utility
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
Comment Utility
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
Comment Utility
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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

In tuning file systems on the Solaris Operating System, changing some parameters of a file system usually destroys the data on it. For instance, changing the cache segment block size in the volume of a T3 requires that you delete the existing volu…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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…

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now