GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   SSH question... (help please) (https://gfy.com/showthread.php?t=453375)

RedShoe 04-07-2005 05:51 PM

SSH question... (help please)
 
What's the command line for downloading a tar file from my server to my HD?
Thanks.

Trafficbrokercom 04-07-2005 05:52 PM

Quote:

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 .

Jon2 04-07-2005 05:54 PM

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

comeplay 04-07-2005 05:55 PM

wget http://domain.com/file.tar

Jon2 04-07-2005 05:58 PM

Does anyone actually fully read a thread?

Jon

JulianSosa 04-07-2005 05:58 PM

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

Trafficbrokercom 04-07-2005 06:01 PM

Quote:

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.

RedShoe 04-07-2005 06:03 PM

Quote:

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.

RedShoe 04-07-2005 06:04 PM

Quote:

Originally Posted by Trafficbrokercom
for sure not with ssh but with the scp command that comes with ssh.

He's using Secure CRT.

joechip 04-07-2005 06:05 PM

Quote:

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

Mr.Fiction 04-07-2005 06:05 PM

Quote:

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?

Workshop_Willy 04-07-2005 06:09 PM

Quote:

Originally Posted by JulianSosa
Just use ftp if you are trying to download to a local pc


What Son-of-Sammy said.

JulianSosa 04-07-2005 06:42 PM

Quote:

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

prime 04-07-2005 07:38 PM

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 ;)

willow 04-07-2005 08:02 PM

Quote:

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.

BadBrad 04-07-2005 08:31 PM

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.

directfiesta 04-07-2005 09:34 PM

People here like to complicate their life :1orglaugh

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

netpimp 04-07-2005 11:13 PM

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


All times are GMT -7. The time now is 09:22 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123