SCP Syntax

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 @  to /var/tmp on a FreeBSD server @  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.
Who is Participating?
TintinConnect With a Mentor Commented:
On your Macbook Pro use

scp  junos-jsr-10.0R4.7-export.tgz username@

Or on the FreeBSD server, do

scp username@ junos-jsr-10.0R4.7-export.tgz /var/tmp
SuncoreAuthor Commented:
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@
Connection to 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?
SuncoreAuthor Commented:
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.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.