Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

technekai

macrumors newbie
Original poster
Feb 28, 2008
20
0
i am trying to use terminal for ssh.

i'm in a directory on my website using terminal, but how do i download something?

cp mygif.gif /Users/MyUserName/Desktop

doesn't seem to work. nor does

curl mygif.gif /Users/MyUserName/Desktop

nor

wget mygif.gif /Users/MyUserName/Desktop


what's the correct command? and while we're at it, can i ask how to download to a new folder?

like cp mygif.gif /Users/MyUserName/Desktop & mkdir MyNewFolder

??
thanks for your help,
aya.
 
If you want to transfer files between a server and local directories you need to connect to it using the sftp command, not the ssh command and then use "get" to download the files.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.