Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Mac OS X > How do I copy a file from my Desktop using SSH?

How do I copy a file from my Desktop using SSH?
Thread Tools
Mac Enthusiast
Join Date: Jan 2002
Status: Offline
Reply With Quote
May 25, 2005, 09:15 AM
 
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
Reply With Quote
May 25, 2005, 09:28 AM
 
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!
     
mAxximo  (op)
Mac Enthusiast
Join Date: Jan 2002
Status: Offline
Reply With Quote
May 25, 2005, 09:51 AM
 
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
Reply With Quote
May 25, 2005, 09:57 AM
 
yep.
     
Moderator
Join Date: May 2001
Location: Hilbert space
Status: Offline
Reply With Quote
May 25, 2005, 10:00 AM
 
You can use various GUIs, too. You don't have to use the Terminal.

Just one of them:
http://rsug.itd.umich.edu/software/fugu/

If you want to look for others, do a google on MacOS X sftp.
I don't suffer from insanity, I enjoy every minute of it.
     
Clinically Insane
Join Date: Nov 1999
Status: Offline
Reply With Quote
May 25, 2005, 10:01 AM
 
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
Reply With Quote
May 25, 2005, 10:06 AM
 
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.
     
mAxximo  (op)
Mac Enthusiast
Join Date: Jan 2002
Status: Offline
Reply With Quote
May 25, 2005, 10:11 AM
 
Great, I'll look for a free FTP app that supports SFTP. Thanks!
     
Moderator
Join Date: May 2001
Location: Hilbert space
Status: Offline
Reply With Quote
May 25, 2005, 10:17 AM
 
The one quoted above, fugu, is for free.
I don't suffer from insanity, I enjoy every minute of it.
     
mAxximo  (op)
Mac Enthusiast
Join Date: Jan 2002
Status: Offline
Reply With Quote
May 25, 2005, 10:51 AM
 
Crap, it's rejecting my password...
I'm using fugu.
     
Posting Junkie
Join Date: Dec 2000
Status: Offline
Reply With Quote
May 25, 2005, 11:39 AM
 
My favorite free client is Cyberduck.

Make sure you're using both the same username and password that you use for SSH.

Ticking sound coming from a .pkg package? Don't let the .bom go off! Inspect it first with Pacifist. Macworld - five mice!
     
mAxximo  (op)
Mac Enthusiast
Join Date: Jan 2002
Status: Offline
Reply With Quote
May 25, 2005, 11:52 AM
 
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
Reply With Quote
May 25, 2005, 03:41 PM
 
Another vote for Cyberduck. I use it all the time to xfer files to my mini server at home.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 07:22 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2