SSH question... (help please)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • RedShoe
    赤い靴 call me 202-456-1111
    • Feb 2001
    • 14831

    #1

    SSH question... (help please)

    What's the command line for downloading a tar file from my server to my HD?
    Thanks.

    SPECIALTY COSTUMES • PROPS • FX
    Superheroes • Monsters • Robots
    PM for details


    For any manufacturing needs. Adult or otherwise.

    aka BonsHigh on Insta
    Bonsai weed plants


  • Trafficbrokercom
    Confirmed User
    • Dec 2002
    • 542

    #2
    Originally posted by RedShoe
    What's the command line for downloading a tar file from my server to my HD?
    Thanks.
    cd to the ssh directory and type

    scp [email protected]:/path/file.tar .

    Comment

    • Jon2
      So Fucking Banned
      • Aug 2001
      • 2875

      #3
      You can't download a file to your local pc using SSH...

      Use SSH to move the file to a web directory on your box and download it via IE

      Jon

      Comment

      • comeplay
        Confirmed User
        • Nov 2004
        • 1435

        #4
        wget http://domain.com/file.tar
        Top virtual hosts for under 10$? www.hostmylife.com | icq 50663030

        Comment

        • Jon2
          So Fucking Banned
          • Aug 2001
          • 2875

          #5
          Does anyone actually fully read a thread?

          Jon

          Comment

          • JulianSosa
            Confirmed User
            • Aug 2003
            • 3042

            #6
            Just use ftp if you are trying to download to a local pc

            Comment

            • Trafficbrokercom
              Confirmed User
              • Dec 2002
              • 542

              #7
              Originally posted by Jon
              You can't download a file to your local pc using SSH...
              for sure not with ssh but with the scp command that comes with ssh.

              Comment

              • RedShoe
                赤い靴 call me 202-456-1111
                • Feb 2001
                • 14831

                #8
                Originally posted by JulianSosa
                Just use ftp if you are trying to download to a local pc

                FTP won't work. He can't see the home directory where a tar file backup is.

                SPECIALTY COSTUMES • PROPS • FX
                Superheroes • Monsters • Robots
                PM for details


                For any manufacturing needs. Adult or otherwise.

                aka BonsHigh on Insta
                Bonsai weed plants


                Comment

                • RedShoe
                  赤い靴 call me 202-456-1111
                  • Feb 2001
                  • 14831

                  #9
                  Originally posted by Trafficbrokercom
                  for sure not with ssh but with the scp command that comes with ssh.
                  He's using Secure CRT.

                  SPECIALTY COSTUMES • PROPS • FX
                  Superheroes • Monsters • Robots
                  PM for details


                  For any manufacturing needs. Adult or otherwise.

                  aka BonsHigh on Insta
                  Bonsai weed plants


                  Comment

                  • joechip
                    Registered User
                    • Apr 2003
                    • 27

                    #10
                    Originally posted by Jon
                    You can't download a file to your local pc using SSH...

                    Use SSH to move the file to a web directory on your box and download it via IE

                    Jon
                    That's news to me. I upload and download stuff from my unix servers to my windows PCs with WinSCP or scp under cygwin:

                    C:\Documents and Settings\Administrator>uname -a
                    CYGWIN_NT-5.1 cpaq 1.5.12(0.116/4/2) 2004-11-10 08:34 i686 unknown unknown Cygwin

                    C:\Documents and Settings\Administrator>scp -v
                    usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
                    [-l limit] [-o ssh_option] [-P port] [-S program]
                    [[user@]host1:]file1 [...] [[user@]host2:]file2

                    Comment

                    • Mr.Fiction
                      Confirmed User
                      • Feb 2002
                      • 9484

                      #11
                      Originally posted by RedShoe
                      FTP won't work. He can't see the home directory where a tar file backup is.
                      Move the file to somewhere he can see it?
                      Don't be lazy, protect free speech: ACLU | Free Speech Coalition | EFF | IMPA

                      Comment

                      • Workshop_Willy
                        Confirmed User
                        • Oct 2004
                        • 452

                        #12
                        Originally posted by JulianSosa
                        Just use ftp if you are trying to download to a local pc

                        What Son-of-Sammy said.
                        FREE Retouch - get a gratis from the best there is!


                        Do the Mess-Around...

                        Comment

                        • JulianSosa
                          Confirmed User
                          • Aug 2003
                          • 3042

                          #13
                          Originally posted by RedShoe
                          FTP won't work. He can't see the home directory where a tar file backup is.
                          mv file.name full/path/where/hecan/see/in/ftp/file.name
                          Then download with ftp
                          Last edited by JulianSosa; 04-07-2005, 05:43 PM.

                          Comment

                          • prime
                            Confirmed User
                            • Feb 2005
                            • 400

                            #14
                            option 1. wget http://domain.com/path/tothefile/tar.gz
                            move the tar file to the htdocs folder

                            option 2. scp
                            scp [email protected]:/path/tothefile/tar.gz

                            or give me the login info and ill do it - FREE ;)

                            | offshore solutions | manual labor | staff leasing | and more!
                            Dedicated -Motivated-Managed Employees
                            icq.: 309570461 live chat

                            Comment

                            • willow
                              Confirmed User
                              • Dec 2001
                              • 131

                              #15
                              Originally posted by RedShoe
                              He's using Secure CRT.
                              Which is a product from www.vandyke.com. Go there and download Secure FX (trial available) which allows you to do secure copying via ssh (aka scp) on a Windows box with almost no hassle.

                              Comment

                              • BadBrad
                                Confirmed User
                                • Feb 2004
                                • 618

                                #16
                                Another trick is if your SSH client has Z-Modem transfer built in like TeraTerm with SSH does and your Linux distro (RedHat, SuSe) has rz/sz installed you can do a "sz <filename>" and start a Z-Modem file transfer. Works really good on smaller files. Anything bigger than 10Mb tends to have problems.
                                Your sig chose me!

                                Comment

                                • directfiesta
                                  Too lazy to set a custom title
                                  • Oct 2002
                                  • 30135

                                  #17
                                  People here like to complicate their life

                                  Get a proper SSH :F-Secure SSh - client

                                  With it comes :

                                  F-Secure SSH FILE transfer ( a tunnel justlike an FTP but up to the root ).
                                  Can download, chmod, etc....
                                  I know that Asspimple is stoopid ... As he says, it is a FACT !

                                  But I can't figure out how he can breathe or type , at the same time ....

                                  Comment

                                  • netpimp
                                    Registered User
                                    • Jan 2005
                                    • 66

                                    #18
                                    Go to google, search for "putty", grab a copy of pscp.
                                    pscp will save you the hassle of having to install all of cygwin in order to just use scp.

                                    pscp/scp syntax:

                                    scp user@host:file path/to/where/you/want/it

                                    for instance:

                                    scp [email protected]:somedir/myfile.tar C:\

                                    sftp is also an option if you have sftp-server installed (is common nowadays.)
                                    SecureFX from vandyke would take care of that.

                                    and finally, root@host won't work unless you have (at least in OpenSSH) PermitRootLogin set to 'yes'..

                                    hit me up on an IM if you need more help.
                                    -netpimp

                                    Comment

                                    Working...