homepage Welcome to WebmasterWorld Guest from 54.227.11.45
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
How can I get a file from a server via SSH?
migthegreek




msg:4262343
 5:11 pm on Feb 3, 2011 (gmt 0)

There is a PHP file on a server that I need to save to my local machine. How can I get this without using an FTP client, but through PuTTY or something else?

I have installed vsftp on the server but I can't connect with an FTP client for some reason. I need the file urgently, so while I work on figuring out why I can't connect via FTP, how can I get the file some other way?

 

OutdoorWebcams




msg:4262720
 11:25 am on Feb 4, 2011 (gmt 0)

Could work this way:

Log in to your server via ssh and then copy it via scp to your local machine:

'scp path_to_file local_username@local_ip_address:/path_to_file'

migthegreek




msg:4262735
 12:13 pm on Feb 4, 2011 (gmt 0)

I am getting:

ssh: connect to host 192.168.47.1 port 22: Connection timed out
lost connection

migthegreek




msg:4262809
 2:48 pm on Feb 4, 2011 (gmt 0)

I ended up using PSCP and it worked.

graeme_p




msg:4263518
 10:59 am on Feb 7, 2011 (gmt 0)

I do this all the time using SFTP

Because I use Linux I just drag and drop using the Konqueror file manager, but you should be able to find a reasonable GUI SFTP client on any platform.

There is no real reason to use FTP any more. Sending passwords in plain text is not good security, and FTP does nothing to verify that you are connected to the server you wanted to be connected to either.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved