Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Uploading files from Mac to Unix/Linux via ssh Post 302412875 by Scott on Tuesday 13th of April 2010 08:01:42 PM
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..
 

3 More Discussions You Might Find Interesting

1. 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

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. 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
SSH-COPY-ID(1)						      General Commands Manual						    SSH-COPY-ID(1)

NAME
ssh-copy-id - install your public key in a remote machine's authorized_keys SYNOPSIS
ssh-copy-id [-i [identity_file]] [user@]machine DESCRIPTION
ssh-copy-id is a script that uses ssh to log into a remote machine and append the indicated identity file to that machine's ~/.ssh/autho- rized_keys file. If the -i option is given then the identity file (defaults to ~/.ssh/id_rsa.pub) is used, regardless of whether there are any keys in your ssh-agent. Otherwise, if this: ssh-add -L provides any output, it uses that in preference to the identity file. If the -i option is used, or the ssh-add produced no output, then it uses the contents of the identity file. Once it has one or more fin- gerprints (by whatever means) it uses ssh to append them to ~/.ssh/authorized_keys on the remote machine (creating the file, and directory, if necessary.) NOTES
This program does not modify the permissions of any pre-existing files or directories. Therefore, if the remote sshd has StrictModes set in its configuration, then the user's home, ~/.ssh folder, and ~/.ssh/authorized_keys file may need to have group writability disabled manu- ally, e.g. via chmod go-w ~ ~/.ssh ~/.ssh/authorized_keys on the remote machine. SEE ALSO
ssh(1), ssh-agent(1), sshd(8) OpenSSH 14 November 1999 SSH-COPY-ID(1)
All times are GMT -4. The time now is 11:19 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy