Uploading files from Mac to Unix/Linux via ssh


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Uploading files from Mac to Unix/Linux via ssh
# 1  
Old 04-13-2010
Uploading files from Mac to Unix/Linux via ssh

Ok. I am using the Terminal window to ssh into a unix server. I am not sure how to copy a file from my mac onto the unix server. What command do I enter and how do I type the file I want to upload

Example. Say my file is named Test1.doc and it is on the usr/me/test/working/ directory and I want to upload into to the Unix directory listed as me/test2/ what command do I need to enter? Thanks.
# 2  
Old 04-13-2010
If you are able to ssh, you are also able to scp.

Look at the man page for scp.

Generally it's not that dissimilar to the regular cp command.

From your Mac:
Code:
MyMac $ >  scp someFile someUser@someServer:/somePath/someFile

# 3  
Old 04-13-2010
I am a newbie. What command do I use with scp? How do I write it? "scp someFile someUser@someServer:/somePath/someFile" ? Is someFile the actual file name? if the file is names Test1 and is on directory usr/test/working so it looks like usr/test/working/Test1.doc and I want to upload it to Unix Server me@55.55.55.55 onto file usr/me/directory1/working how exactly would I write it? Thanks.
# 4  
Old 04-13-2010
Based on what you asked:

Code:
scp /usr/test/working/Test1 me@55.55.55.55:/usr/me/directory1/working/Test1
             |          |   |     |               |                     |
       Source Dir       |   |  Remote Svr         |                 Remote File (optional)
                Source File |                Remote Directory (optional)
                       Remote User

As I suggested, please refer to the man page.

Last edited by Scott; 04-13-2010 at 09:23 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

3 More Discussions You Might Find Interesting

1. Web Development

Uploading files via php

I used the following code, which I found on the internet to upload files. <!-- The data encoding type, enctype, MUST be specified as below --> <form enctype="multipart/form-data" action="upload2.php" method="POST"> <!-- MAX_FILE_SIZE must precede the file input field --> <input... (2 Replies)
Discussion started by: jgt
2 Replies

2. UNIX for Dummies Questions & Answers

Transfer Files from old Mac to a Linux box?

The other half has informed me that I gotta get my own Internet box (been using her's for over ten years) and my ancient Mac SE30 (when's the last time you heard about one of those) has a bunch of Excel and Word files that I want to move to the next machine. I know that I can spend significant... (3 Replies)
Discussion started by: wsimpso1
3 Replies

3. UNIX for Dummies Questions & Answers

mac 10.4>terminal>linux remote server>ssh login accepted>session closed-why?

mac 10.4>terminal>linux remote server>ssh login accepted>session closed-why? AHHHH!! I have been connecting to the server with the line: ssh userid@website.com The remote server accepts my password; logs me in with ssh; posts a lovely welcome message AND closes the session. Is this a "term... (0 Replies)
Discussion started by: xprankard
0 Replies
Login or Register to Ask a Question