I'm using Putty on Windows - How do I D/L and Edit a file from Linux Host?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm using Putty on Windows - How do I D/L and Edit a file from Linux Host?
It's as simple as that.
I can't use get or put commands from SSH on port 22 for some reason.
What's with that?? Anyway, after I log into my host as root, I want to be able to edit proftpd.conf . I want to download it to my windows PC, edit it from there, and put it back.
Go get winscp, that's an opensource sftp/scp windows program that uses port 22 ssh to xfer files back and forth. Looks just like any old ftp client. GET and PUT are ftp commands, when you ssh into your linux box, you're running a shell, not in an ftp session.
edit - psftp is probably what you're wanting, not putty - it's an alternative that comes with putty if you download the whole suite.. pstfp, puttytel, puttyget, etc is all available at
i used the "vi" command to edit the text file. However, I messed it up, and closed the SSH session without saving the file. When I brought up the "vi" command again to edit the file, it said the session was already open.
How do i close the previous session? When i used top, i don't see it.
If your vi session dies during edit it will leave a hidden swap file with your changes.
It starts with a "dot" so it's hidden (i.e., .oldfile.txt.swp)
You will see the editor nag if this file exists next time you try to edit the file, you can use editor commands to recover or just delete the hidden file to keep the original.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.