 |
 |
How do I copy a file from my Desktop using SSH?
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2002
Status:
Offline
|
|
I have a file at home that didn't finish rendering by the time I left for work and I need to copy it over to my work computer. I enabled SSH before leaving this morning and I got this: “To log in to this computer remotely, type "ssh massimo@adsl-xxxxxxxxxxx" at a shell command prompt.”
I guess that's in Terminal?? And then what?
TIA
|
|
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Nov 1999
Status:
Offline
|
|
Actually, you'll have better luck with scp than ssh. Both are enabled when you enable SSH access, so you're fine as far as that goes. Use the following in the Terminal:
Code:
scp massimo@adsl-xxxxxxxxxxx:file-to-copy copy-file-to-here
file-to-copy is the path to the file on the machine you're copying from. Note that there's no space between the hostname, the colon, and the path to the file.
copy-file-to-here is where you want to copy the file to. You can just use "." if you want to drop it into the current directory with the same name it had before.
SSH will ask you for your password, and then it will handle the rest for you. Note that you can reverse the operation by attaching the user@host: ("massimo@adsl-xxxxxxxxxxx:" in your case) to copy-file-to-here instead of file-to-copy, and upload files to your home machine. They can go anywhere that the user you're logging in as could put them. It may even be possible to use two different user@host combinations and use your machine to copy files between two other machines, but I've never tried that.
|
|
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2002
Status:
Offline
|
|
Cool, thanks!
The file is on my desktop, would the path to that be /Users/massimo/Desktop/file.mov?
|
|
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Feb 2005
Location: 888500128
Status:
Offline
|
|
|
|
|
|
| |
|
|
|
 |
|
 |
|
Moderator 
Join Date: May 2001
Location: Hilbert space
Status:
Offline
|
|
|
|
|
I don't suffer from insanity, I enjoy every minute of it.
|
| |
|
|
|
 |
|
 |
|
Clinically Insane
Join Date: Nov 1999
Status:
Offline
|
|
After a little more research, you can also use sftp, which (like scp) is enabled and disabled as part of SSH. This may be the easiest method of all, because it works just like an FTP client aside from the name of the client. In fact, if you have a GUI FTP client that supports SFTP, such as Transmit, then you don't even need the Terminal at all.
|
|
You are in Soviet Russia. It is dark. Grue is likely to be eaten by YOU!
|
| |
|
|
|
 |
|
 |
|
Moderator 
Join Date: May 2001
Location: Hilbert space
Status:
Offline
|
|
sftp looks like ftp from the outside, but every command is called using ssh.
|
|
I don't suffer from insanity, I enjoy every minute of it.
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2002
Status:
Offline
|
|
Great, I'll look for a free FTP app that supports SFTP. Thanks!
|
|
|
| |
|
|
|
 |
|
 |
|
Moderator 
Join Date: May 2001
Location: Hilbert space
Status:
Offline
|
|
The one quoted above, fugu, is for free.
|
|
I don't suffer from insanity, I enjoy every minute of it.
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2002
Status:
Offline
|
|
Crap, it's rejecting my password...
I'm using fugu.
|
|
|
| |
|
|
|
 |
|
 |
|
Posting Junkie
Join Date: Dec 2000
Status:
Offline
|
|
My favorite free client is Cyberduck.
Make sure you're using both the same username and password that you use for SSH.
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Enthusiast
Join Date: Jan 2002
Status:
Offline
|
|
Cyberduck worked fine, thanks! It's copying now...
I tried Terminal before reading your message and it connected fine too but couldn't transfer the file because “Command not found”....
|
|
|
| |
|
|
|
 |
|
 |
|
Mac Elite
Join Date: Feb 2001
Location: Houston, Texas
Status:
Offline
|
|
Another vote for Cyberduck. I use it all the time to xfer files to my mini server at home.
|
|
|
| |
|
|
|
 |
 |
|
 |
|
|
|
|
|

|
|
 |
Forum Rules
|
 |
 |
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
 |
 |
 |
 |
|
 |
|