简体   繁体   中英

Modifying files on remote Ubuntu server from Windows PC

I am developing some Python programs that I'm running on a remote Ubuntu Linux server (hosted on Slicehost). I would like to work on the source in an IDE on my Windows Vista PC, and have all file modifications sent directly to the Linux box without my intervention (ie without having to manually SFTP the files each time I change them). What is the very easiest way I can do this?

WinSCP includes a basic remote file editor , though if you want to use a proper IDE for your development this won't be much help.

I'd suggest you run a version control system like subversion , which would allow you to write a post-commit hook to automatically rsync your code the server with each commit.

Install Samba and OpenVPN on the server, and OpenVPN on the client. Setup Samba to share the directory tree you're interested in, and access it over the VPN for security. Perhaps Vista has non-sucky WebDAV support by now, and you could use WebDAV over HTTPS, but it was always crap under XP.

Ben's suggestion of a local dev environment using a VM is also a winner.

Use PuTTy and SFTPDrive .

PuTTy is an SSH client, and SFTPDrive ($39 USD) will allow you to mount your remote file system locally as a drive letter.

You could install cygwin and then have rsync run on cron every minute.

Or you could use Netdrive to access the server via FTP like a local disk:

http://tech.xptechsupport.com/netdrive-turn-your-ftp-into-a-drive-letter.html

Or you may be able to achieve something similar using cygwin and FUSE - you can on linux, but never tried it on cygwin.

Also, would it not be easier to set up a full dev environment locally? Maybe using a virtual machine? It'll be much quicker for testing. And then you can set up a shell script to transfer the current version to the slicehost server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM