Page 1 of 2 1 2 LastLast
Results 1 to 20 of 26
  1. #1
    Member SeanBest's Avatar
    Join Date
    Aug 2006
    Location
    Harrisonburg, VA
    Heatware Profile

    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

  2. #2
    Overclockix Snake Charming Senior
    Alt OS Content Editor
    Stratus_ss's Avatar
    Join Date
    Jan 2006
    Location
    Ontario Canada
    Author Profile Folding Profile Heatware Profile
    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
    Last edited by Stratus_ss; 08-31-09 at 04:49 PM.
    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"

  3. #3
    Member SeanBest's Avatar
    Join Date
    Aug 2006
    Location
    Harrisonburg, VA
    Heatware Profile
    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

  4. #4
    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

  5. #5
    Member SeanBest's Avatar
    Join Date
    Aug 2006
    Location
    Harrisonburg, VA
    Heatware Profile
    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

  6. #6
    Member SeanBest's Avatar
    Join Date
    Aug 2006
    Location
    Harrisonburg, VA
    Heatware Profile
    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

  7. #7
    Overclockix Snake Charming Senior
    Alt OS Content Editor
    Stratus_ss's Avatar
    Join Date
    Jan 2006
    Location
    Ontario Canada
    Author Profile Folding Profile Heatware Profile
    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"

  8. #8
    Member SeanBest's Avatar
    Join Date
    Aug 2006
    Location
    Harrisonburg, VA
    Heatware Profile
    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

  9. #9
    Member SeanBest's Avatar
    Join Date
    Aug 2006
    Location
    Harrisonburg, VA
    Heatware Profile
    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

  10. #10
    Overclockix Snake Charming Senior
    Alt OS Content Editor
    Stratus_ss's Avatar
    Join Date
    Jan 2006
    Location
    Ontario Canada
    Author Profile Folding Profile Heatware Profile
    apparently Putty uses PSCP not SCP. try that. Just going but what they have on their cite

    EDIT: from a putty tutorial

    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"

  11. #11
    Member SeanBest's Avatar
    Join Date
    Aug 2006
    Location
    Harrisonburg, VA
    Heatware Profile
    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

  12. #12
    Member SeanBest's Avatar
    Join Date
    Aug 2006
    Location
    Harrisonburg, VA
    Heatware Profile
    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

  13. #13
    Gloriously Lead
    Overclockix Chief Architect
    mbentley's Avatar
    10 Year Badge
    Join Date
    Sep 2002
    Location
    Indianapolis, IN
    Author Profile Benching Profile Heatware Profile
    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

  14. #14
    ASCII Moderator
    Overclockers.com Lead Editor

    splat's Avatar
    10 Year Badge
    Join Date
    Apr 2002
    Location
    Philly
    Author Profile
    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


  15. #15
    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 <(+_+)>

  16. #16
    Member SeanBest's Avatar
    Join Date
    Aug 2006
    Location
    Harrisonburg, VA
    Heatware Profile
    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

  17. #17
    Gloriously Lead
    Overclockix Chief Architect
    mbentley's Avatar
    10 Year Badge
    Join Date
    Sep 2002
    Location
    Indianapolis, IN
    Author Profile Benching Profile Heatware Profile
    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

  18. #18
    Member SeanBest's Avatar
    Join Date
    Aug 2006
    Location
    Harrisonburg, VA
    Heatware Profile
    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

  19. #19
    ASCII Moderator
    Overclockers.com Lead Editor

    splat's Avatar
    10 Year Badge
    Join Date
    Apr 2002
    Location
    Philly
    Author Profile
    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


  20. #20
    Member SeanBest's Avatar
    Join Date
    Aug 2006
    Location
    Harrisonburg, VA
    Heatware Profile
    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

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •