Notices

Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

Using PuTTy to copy files from linux server to Windows Desktop

Post Reply New Thread Subscribe Search this Thread
 
 
Thread Tools
Old 08-31-09, 03:50 PM Thread Starter   #1
SeanBest
Member

 
SeanBest's Avatar 

Join Date: Aug 2006
Location: Harrisonburg, VA

 
Using PuTTy to copy files from linux server to Windows Desktop


Ok, so basically I'm using PuTTy and I'm accessing the linux servers on campus at school. Last semester I was using PuTTY and a FileZilla, but this semester (although they says they changed nothing) I am unable to connect to the servers with FileZilla or WinSCP, it just says Connection Refused. So I'm wondering what commands would I use in PuTTY to copy files from a directory or a directory in whole from these servers to my desktop.

Example:

n-drive/Fall09/CS239/Lab01 -- where the files are located

C:/ -- where I want them to go

I know PuTTy will take basic linux commands, but I've looked all over and haven't found anything yet, hoping someone here can.


Hopefully this was the right section too, wasn't sure whether I should put it in networking or here ...


Thanks ins advance!

__________________
HEAT
Motherboard --------- BIOSTAR TPower I45
CPU ------------------- Intel E8600 @ 4GHz
Memory -------------- 4GB Corsair Dominator DDR2 1066
Cooling --------------- Thermalright Ultra 120 Extreme
HDDs ----------------- Western Digital Velociraptor 300GB 10k RPM
Graphics Card ------- MSI HD4870 OC Edition
Soundcard ----------- Creative X-Fi Xtremegamer
Case ------------------ Antec Nine Hundered
Power Supply -------- OCZ ModXStream Pro 600W
OS -------------------- Win 7 Pro x64, Mint Debian x64
SeanBest is offline Heatware Profile   QUOTE Thanks
Old 08-31-09, 04:42 PM   #2
Stratus_ss
Overclockix Snake Charming Senior
Alt OS Content Editor

 
Stratus_ss's Avatar 

Join Date: Jan 2006
Location: Ontario Canada

 
putty uses scp to transfer files over I believe

If you have already ssh'd into the directory where the file is:

Code:
scp [file to be copied] some_user@my_ip:[destination_folder]
some_user would be your login name and destination folder is pretty obvious

so as an example on my network
Code:
scp file.txt leoniteous@192.168.1.111:/home/leoniteous/Documents
if not

Code:
scp login_name@server_hosting_file:[path_to_file] [destination]
So at home

Code:
scp media_server@192.168.0.199:/media/tv/some_tv.avi /storage
viola. Over the internet is more complicated by the same idea and I would recommend ssh'ing into the dir where the file is as its the least complicated way

Assuming you have logged into the school computer from home

Code:
scp file.txt login@INTERNET_IP -R [port]:local_ip:[port]:[destination]
looks like

Code:
scp file.txt leoniteous@24.75.119.12 -R 22:192.168.1.111:22:/home/leoniteous/Documents

__________________
HEAT
Those wishing to contribute to the AltOS section front page please PM me.

Leviathan41: "Playing with a controller because the mouse and keyboard is too easy is like racing with a bicycle because a car is too fast."

Chris Fisher "Windows is like Administration with training wheels"

Last edited by Stratus_ss; 08-31-09 at 04:49 PM.
Stratus_ss is offline Author Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 08-31-09, 05:23 PM Thread Starter   #3
SeanBest
Member

 
SeanBest's Avatar 

Join Date: Aug 2006
Location: Harrisonburg, VA

 
Cool. i'll have to give these a try. I realized however I made a stupid mistake, at school today I named the folder Fall 2009 (a space between Fall and 2009) and now whenever I do anything it just uses Fall and the the 2009. It says 'Fall' isn't found or whatever. I tried renaming it but again I can't access the whole Fall 2009 name. Might just have to wait til tomorrow. Don't feel like going back on campus tonight.

__________________
HEAT
Motherboard --------- BIOSTAR TPower I45
CPU ------------------- Intel E8600 @ 4GHz
Memory -------------- 4GB Corsair Dominator DDR2 1066
Cooling --------------- Thermalright Ultra 120 Extreme
HDDs ----------------- Western Digital Velociraptor 300GB 10k RPM
Graphics Card ------- MSI HD4870 OC Edition
Soundcard ----------- Creative X-Fi Xtremegamer
Case ------------------ Antec Nine Hundered
Power Supply -------- OCZ ModXStream Pro 600W
OS -------------------- Win 7 Pro x64, Mint Debian x64
SeanBest is offline Heatware Profile   QUOTE Thanks
Old 08-31-09, 05:44 PM   #4
Leviathan41

 
Leviathan41's Avatar 

Join Date: Dec 2003
Location: @Home, Folding

 
Quote:
Originally Posted by SeanBest View Post
Cool. i'll have to give these a try. I realized however I made a stupid mistake, at school today I named the folder Fall 2009 (a space between Fall and 2009) and now whenever I do anything it just uses Fall and the the 2009. It says 'Fall' isn't found or whatever. I tried renaming it but again I can't access the whole Fall 2009 name. Might just have to wait til tomorrow. Don't feel like going back on campus tonight.
Try this
Code:
Fall\ 2009
Leviathan41 is offline   QUOTE Thanks
Old 08-31-09, 06:09 PM Thread Starter   #5
SeanBest
Member

 
SeanBest's Avatar 

Join Date: Aug 2006
Location: Harrisonburg, VA

 
Quote:
Originally Posted by Leviathan41 View Post
Try this
Code:
Fall\ 2009
Worked! Thanks ... now I can try the other stuff.

__________________
HEAT
Motherboard --------- BIOSTAR TPower I45
CPU ------------------- Intel E8600 @ 4GHz
Memory -------------- 4GB Corsair Dominator DDR2 1066
Cooling --------------- Thermalright Ultra 120 Extreme
HDDs ----------------- Western Digital Velociraptor 300GB 10k RPM
Graphics Card ------- MSI HD4870 OC Edition
Soundcard ----------- Creative X-Fi Xtremegamer
Case ------------------ Antec Nine Hundered
Power Supply -------- OCZ ModXStream Pro 600W
OS -------------------- Win 7 Pro x64, Mint Debian x64
SeanBest is offline Heatware Profile   QUOTE Thanks
Old 08-31-09, 06:14 PM Thread Starter   #6
SeanBest
Member

 
SeanBest's Avatar 

Join Date: Aug 2006
Location: Harrisonburg, VA

 
Code:
scp PhraseCheck.java Sean@192.168.0.1:C:/

I tried the above and no luck so far.

__________________
HEAT
Motherboard --------- BIOSTAR TPower I45
CPU ------------------- Intel E8600 @ 4GHz
Memory -------------- 4GB Corsair Dominator DDR2 1066
Cooling --------------- Thermalright Ultra 120 Extreme
HDDs ----------------- Western Digital Velociraptor 300GB 10k RPM
Graphics Card ------- MSI HD4870 OC Edition
Soundcard ----------- Creative X-Fi Xtremegamer
Case ------------------ Antec Nine Hundered
Power Supply -------- OCZ ModXStream Pro 600W
OS -------------------- Win 7 Pro x64, Mint Debian x64
SeanBest is offline Heatware Profile   QUOTE Thanks
Old 08-31-09, 06:18 PM   #7
Stratus_ss
Overclockix Snake Charming Senior
Alt OS Content Editor

 
Stratus_ss's Avatar 

Join Date: Jan 2006
Location: Ontario Canada

 
I could be mistaken but I think the '/' is a special character like the space, if this is the case it needs an escape just like the space
Code:
C:\/
Also note that linux and therefore putty are case sensitive. Unless I am mistaken I believe windows uses the ToLower() function to convert all of their strings to lower case...

so the folder 'MOVIES' is actually read in asci as 'movies'. If this is indeed the case then having a C drive and having a c drive actually makes the difference

__________________
HEAT
Those wishing to contribute to the AltOS section front page please PM me.

Leviathan41: "Playing with a controller because the mouse and keyboard is too easy is like racing with a bicycle because a car is too fast."

Chris Fisher "Windows is like Administration with training wheels"
Stratus_ss is offline Author Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 08-31-09, 06:20 PM Thread Starter   #8
SeanBest
Member

 
SeanBest's Avatar 

Join Date: Aug 2006
Location: Harrisonburg, VA

 
Code:
scp file.txt login@INTERNET_IP -R [port]:local_ip:[port]:[destination]
Get ssh: connect to host 22 port 22: Invalid arguements when I tried this as well. Obviously I filled in the info.

__________________
HEAT
Motherboard --------- BIOSTAR TPower I45
CPU ------------------- Intel E8600 @ 4GHz
Memory -------------- 4GB Corsair Dominator DDR2 1066
Cooling --------------- Thermalright Ultra 120 Extreme
HDDs ----------------- Western Digital Velociraptor 300GB 10k RPM
Graphics Card ------- MSI HD4870 OC Edition
Soundcard ----------- Creative X-Fi Xtremegamer
Case ------------------ Antec Nine Hundered
Power Supply -------- OCZ ModXStream Pro 600W
OS -------------------- Win 7 Pro x64, Mint Debian x64
SeanBest is offline Heatware Profile   QUOTE Thanks
Old 08-31-09, 06:21 PM Thread Starter   #9
SeanBest
Member

 
SeanBest's Avatar 

Join Date: Aug 2006
Location: Harrisonburg, VA

 
Tried changing it to a lowercase c ... it just sits there doing nothing ... really wondering why I can't just ftp to it like I always have.

__________________
HEAT
Motherboard --------- BIOSTAR TPower I45
CPU ------------------- Intel E8600 @ 4GHz
Memory -------------- 4GB Corsair Dominator DDR2 1066
Cooling --------------- Thermalright Ultra 120 Extreme
HDDs ----------------- Western Digital Velociraptor 300GB 10k RPM
Graphics Card ------- MSI HD4870 OC Edition
Soundcard ----------- Creative X-Fi Xtremegamer
Case ------------------ Antec Nine Hundered
Power Supply -------- OCZ ModXStream Pro 600W
OS -------------------- Win 7 Pro x64, Mint Debian x64
SeanBest is offline Heatware Profile   QUOTE Thanks
Old 08-31-09, 06:27 PM   #10
Stratus_ss
Overclockix Snake Charming Senior
Alt OS Content Editor

 
Stratus_ss's Avatar 

Join Date: Jan 2006
Location: Ontario Canada

 
apparently Putty uses PSCP not SCP. try that. Just going but what they have on their cite

EDIT: from a putty tutorial

Quote:
To receive (a) file(s) from a remote server:

pscp [options] [user@]host:source target

So to copy the file /etc/hosts from the server example.com as user fred to the file c:\temp\example-hosts.txt, you would type:

pscp fred@example.com:/etc/hosts c:\temp\example-hosts.txt
which appears that I was right about the C and the c drives although I was wrong about the \ being a special character

__________________
HEAT
Those wishing to contribute to the AltOS section front page please PM me.

Leviathan41: "Playing with a controller because the mouse and keyboard is too easy is like racing with a bicycle because a car is too fast."

Chris Fisher "Windows is like Administration with training wheels"
Stratus_ss is offline Author Profile Folding Profile Heatware Profile   QUOTE Thanks
Old 08-31-09, 06:29 PM Thread Starter   #11
SeanBest
Member

 
SeanBest's Avatar 

Join Date: Aug 2006
Location: Harrisonburg, VA

 
just typing pscp in gives unknown command ... well ... I give up for now. Gonna just take my thumb drive with me so I can take my work off campus. Dunno why they can't just make their VPN crap work with 64bit OS so I could just map the network drive directly and bypass the linux servers, because they obviously got rid fo the option to ftp into it.

__________________
HEAT
Motherboard --------- BIOSTAR TPower I45
CPU ------------------- Intel E8600 @ 4GHz
Memory -------------- 4GB Corsair Dominator DDR2 1066
Cooling --------------- Thermalright Ultra 120 Extreme
HDDs ----------------- Western Digital Velociraptor 300GB 10k RPM
Graphics Card ------- MSI HD4870 OC Edition
Soundcard ----------- Creative X-Fi Xtremegamer
Case ------------------ Antec Nine Hundered
Power Supply -------- OCZ ModXStream Pro 600W
OS -------------------- Win 7 Pro x64, Mint Debian x64
SeanBest is offline Heatware Profile   QUOTE Thanks
Old 08-31-09, 07:05 PM Thread Starter   #12
SeanBest
Member

 
SeanBest's Avatar 

Join Date: Aug 2006
Location: Harrisonburg, VA

 
So I decided to throw in my Ubuntu 8.10 disc, opened up the Live CD, ssh'd into the server, mounted the n-drive, then under Places, logged into the network drive and dragged and dropped the files onto a thumbdrive. w00t! Not easy, but maybe I'll be reinstalling linux on another hdd then.

__________________
HEAT
Motherboard --------- BIOSTAR TPower I45
CPU ------------------- Intel E8600 @ 4GHz
Memory -------------- 4GB Corsair Dominator DDR2 1066
Cooling --------------- Thermalright Ultra 120 Extreme
HDDs ----------------- Western Digital Velociraptor 300GB 10k RPM
Graphics Card ------- MSI HD4870 OC Edition
Soundcard ----------- Creative X-Fi Xtremegamer
Case ------------------ Antec Nine Hundered
Power Supply -------- OCZ ModXStream Pro 600W
OS -------------------- Win 7 Pro x64, Mint Debian x64
SeanBest is offline Heatware Profile   QUOTE Thanks
Old 09-01-09, 07:52 AM   #13
mbentley
Gloriously Lead
Overclockix Chief Architect

 
mbentley's Avatar 

Join Date: Sep 2002
Location: Indianapolis, IN

10 Year Badge
 
why not just download winscp and use it on your windows machine? you can then connect just like a ftp client and download files from the linux box.

__________________
intel i5-750 -- msi p55-gd65 -- 4 x 4gb ddr3 1600 -- msi gtx550 ti cyclone oc 1gb -- antec p182 -- ocz fatal1ty 750w -- windows 8.1 x64
intel i5-3330 -- msi z77a-gd65 -- 4 x 8gb ddr3 1600 -- intel hd graphics 2500 -- fractal design define r4 black -- debian wheezy amd64

forum rules | overclockix | overclockers geforce survey | mbentley.net
mbentley is offline Author Profile Benching Profile Heatware Profile   QUOTE Thanks
Old 09-01-09, 08:20 AM   #14
splat
ASCII Moderator
Overclockers.com Lead Editor


 
splat's Avatar 

Join Date: Apr 2002
Location: Philly

10 Year Badge
 
or filezilla? has sftp. http://filezilla-project.org/

anyway, with putty i believe you need to download all the extra tools, like pscp, separately. http://www.chiark.greenend.org.uk/~s.../download.html

__________________
______________________________/\/\__________________/\/\_____
_______/\/\/\/\__/\/\/\/\____/\/\____/\/\/\______/\/\/\/\/\__
____/\/\/\/\____/\/\__/\/\__/\/\________/\/\______/\/\_______
_________/\/\__/\/\/\/\____/\/\____/\/\/\/\______/\/\________
__/\/\/\/\____/\/\________/\/\/\__/\/\/\/\/\____/\/\/\_______
_____________/\/\___________
once you clock you can't go stock
[RHCSA, RHCE] || articles || folding stats || overclockers last.fm group

splat is offline Author Profile   QUOTE Thanks
Old 09-01-09, 10:26 AM   #15
SuperMiguel
Super User

 
SuperMiguel's Avatar 

Join Date: Sep 2007
Location: Florida, US

 
Quote:
Originally Posted by mbentley View Post
why not just download winscp and use it on your windows machine? you can then connect just like a ftp client and download files from the linux box.
+1

__________________
<(+_+)> (v)g <(+_+)>
SuperMiguel is offline   QUOTE Thanks
Old 09-01-09, 11:14 AM Thread Starter   #16
SeanBest
Member

 
SeanBest's Avatar 

Join Date: Aug 2006
Location: Harrisonburg, VA

 
I did that. In first post I mentioned that. The problem is I am unable to connect with FileZilla or WinSCP. I need to use putty to get into the linux server and mount the Novell n-drive using the mount-n linux command then access it via ftp. That's the point of using putty. Whenever I try using ftp it just says connection refused. I installed Mint 7 last night and just connected to the network and used the terminal to mount the n-drive and it wokrs just like I do on campus. So all is resolved! w00t!

__________________
HEAT
Motherboard --------- BIOSTAR TPower I45
CPU ------------------- Intel E8600 @ 4GHz
Memory -------------- 4GB Corsair Dominator DDR2 1066
Cooling --------------- Thermalright Ultra 120 Extreme
HDDs ----------------- Western Digital Velociraptor 300GB 10k RPM
Graphics Card ------- MSI HD4870 OC Edition
Soundcard ----------- Creative X-Fi Xtremegamer
Case ------------------ Antec Nine Hundered
Power Supply -------- OCZ ModXStream Pro 600W
OS -------------------- Win 7 Pro x64, Mint Debian x64
SeanBest is offline Heatware Profile   QUOTE Thanks
Old 09-01-09, 11:16 AM   #17
mbentley
Gloriously Lead
Overclockix Chief Architect

 
mbentley's Avatar 

Join Date: Sep 2002
Location: Indianapolis, IN

10 Year Badge
 
if you can connect using putty, you should be able to connect with winscp. they both use ssh (port 22). if you need to map the drive, use putty to do that then use winscp, while still connected. that is definitely strange that winscp won't connect...

__________________
intel i5-750 -- msi p55-gd65 -- 4 x 4gb ddr3 1600 -- msi gtx550 ti cyclone oc 1gb -- antec p182 -- ocz fatal1ty 750w -- windows 8.1 x64
intel i5-3330 -- msi z77a-gd65 -- 4 x 8gb ddr3 1600 -- intel hd graphics 2500 -- fractal design define r4 black -- debian wheezy amd64

forum rules | overclockix | overclockers geforce survey | mbentley.net
mbentley is offline Author Profile Benching Profile Heatware Profile   QUOTE Thanks
Old 09-01-09, 11:28 AM Thread Starter   #18
SeanBest
Member

 
SeanBest's Avatar 

Join Date: Aug 2006
Location: Harrisonburg, VA

 
I know. I was reading online that servers can block connections like that? I contacted the helpdesk through the university and they say they haven't changed anything, but of course my hardware/software is all unsupported so they won't do jack.

__________________
HEAT
Motherboard --------- BIOSTAR TPower I45
CPU ------------------- Intel E8600 @ 4GHz
Memory -------------- 4GB Corsair Dominator DDR2 1066
Cooling --------------- Thermalright Ultra 120 Extreme
HDDs ----------------- Western Digital Velociraptor 300GB 10k RPM
Graphics Card ------- MSI HD4870 OC Edition
Soundcard ----------- Creative X-Fi Xtremegamer
Case ------------------ Antec Nine Hundered
Power Supply -------- OCZ ModXStream Pro 600W
OS -------------------- Win 7 Pro x64, Mint Debian x64
SeanBest is offline Heatware Profile   QUOTE Thanks
Old 09-01-09, 12:13 PM   #19
splat
ASCII Moderator
Overclockers.com Lead Editor


 
splat's Avatar 

Join Date: Apr 2002
Location: Philly

10 Year Badge
 
you could have 2 live connections, one in putty to mount the drive, then a 2nd in winscp/filezilla to do the transfers. there's no reason that wouldn't work, as both connect thru the same port: if one can connect so can the other.

__________________
______________________________/\/\__________________/\/\_____
_______/\/\/\/\__/\/\/\/\____/\/\____/\/\/\______/\/\/\/\/\__
____/\/\/\/\____/\/\__/\/\__/\/\________/\/\______/\/\_______
_________/\/\__/\/\/\/\____/\/\____/\/\/\/\______/\/\________
__/\/\/\/\____/\/\________/\/\/\__/\/\/\/\/\____/\/\/\_______
_____________/\/\___________
once you clock you can't go stock
[RHCSA, RHCE] || articles || folding stats || overclockers last.fm group

splat is offline Author Profile   QUOTE Thanks
Old 09-01-09, 02:00 PM Thread Starter   #20
SeanBest
Member

 
SeanBest's Avatar 

Join Date: Aug 2006
Location: Harrisonburg, VA

 
Quote:
Originally Posted by splat View Post
you could have 2 live connections, one in putty to mount the drive, then a 2nd in winscp/filezilla to do the transfers. there's no reason that wouldn't work, as both connect thru the same port: if one can connect so can the other.
That's what I've done. Did it in Fall 2008 and Spring 2009 semesters and out of nowhere it doesn't work anymore. All the settings are the same. They must have done something.

__________________
HEAT
Motherboard --------- BIOSTAR TPower I45
CPU ------------------- Intel E8600 @ 4GHz
Memory -------------- 4GB Corsair Dominator DDR2 1066
Cooling --------------- Thermalright Ultra 120 Extreme
HDDs ----------------- Western Digital Velociraptor 300GB 10k RPM
Graphics Card ------- MSI HD4870 OC Edition
Soundcard ----------- Creative X-Fi Xtremegamer
Case ------------------ Antec Nine Hundered
Power Supply -------- OCZ ModXStream Pro 600W
OS -------------------- Win 7 Pro x64, Mint Debian x64
SeanBest is offline Heatware Profile   QUOTE Thanks

Post Reply New Thread Subscribe


Overclockers Forums > Software > Alternative Operating Systems
Alternative Operating Systems Linux, Mac, Unix Operating Systems and Applications
Forum Jump

Thread Tools Search this Thread
Search this Thread:

Advanced Search


Mobile Skin
All times are GMT -5. The time now is 01:57 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
You can add these icons by updating your profile information to include your Heatware ID, Benching Profile ID or your Folding/SETI profile ID. Edit your profile!
X

Welcome to Overclockers.com

Create your username to jump into the discussion!

New members like you have made this the best community on the Internet since 1998!


(4 digit year)

Why Join Us?

  • Share experience
  • Max out your hardware
  • Best forum members anywhere
  • Customized forum experience

Already a member?