Recently installed and debugged the server in the project, the Cup is, the server is the intranet address, and can not directly ssh, SFTP, only through the middle of a Linux as a springboard, and then in the SSH command line to operate the target machine.
If only the command line operation also does not matter, but also to often transfer files, on the Springboard Machine SSH,SFTP,SCP command switch over the past, exhausted, there is no better way?
Vaguely remember n years ago toss a thing that operates server files over an HTTP protocol, that's WebDAV.
Science began. WebDAV (web-based distributed Authoring and Versioning) is a communication protocol based on the HTTP 1.1 protocol. It extends HTTP 1.1, adding new methods beyond the Get, POST, head, and other HTTP standard methods, enabling applications to directly read and write to the Web server and support write file locking (Locking) and Unlock (Unlock). You can also support version control for files. For more information, please Baidu Google for yourself. For example, it is very convenient to open http://127.0.0.1/uploads/to manipulate files of the specified directory on the server, which solves the limitations of some unit network ports and firewalls.
WebDAV configuration
WebDAV server, currently I only have to toss the Apache httpd, the other I do not understand. Download the httpd 2.x version from Apache httpd official website, download the installation, and after that, open the httpd.conf file and remove one comment from the last few lines.
1 # Distributed Authoring and Versioning (WebDAV) 2 Include conf/extra/httpd-dav.conf
Then edit the conf/extra/httpd-dav.conf file
# # Distributed Authoring and Versioning (WebDAV) # Modified by longware# Required Modules:mod_dav, Mod_dav_fs, Mod_set Envif, mod_alias# mod_auth_digest, mod_authn_file# #LoadModule dav_module modules/mod_dav.so#loadmodule dav_fs_module Modules/mod_dav_fs.so#loadmodule alias_module Modules/mod_alias.so#loadmodule auth_digest_module Modules/mod_auth_digest.so#loadmodule authn_file_module Modules/mod_authn_file.so# The following example gives DAVWriteaccess to a directory called#"uploads"under the ServerRoot directory.## the User/group specifiedinchHttpd.conf needs to hasWritepermissions# on the directory where the davlockdb are placed and on any directory where#"Dav on"is specified. DAVLOCKDB"D:/webserver/apache/var/davlock"Alias/uploads"d:/webserver/apache/uploads"<directory"d:/webserver/apache/uploads">DAV on Order allow,deny allow from all authtype Digest authname Dav-Upload # can use the Htdigest program to create the password database: # htdigest-C"d:/webserver/apache/user.passwd"dav-Upload admin authuserfile"d:/webserver/apache/user.passwd"Authdigestproviderfile# allow Universal Read-access, but writes is restricted # to the Admin user. <limitexcept GET options>require user admin</LimitExcept></Directory># # The following directives disable redirects on non-get Requests for# A directory that is does not include the trailing slash. This fixes a# problem with several clients that DoNot appropriately handle# redirects forfolders with DAV methods. #BrowserMatch"Microsoft Data Access Internet Publishing Provider"redirect-Carefullybrowsermatch"MS FrontPage"redirect-Carefullybrowsermatch"^webdrive"redirect-Carefullybrowsermatch"^WEBDAVFS/1. [0123]"redirect-Carefullybrowsermatch"^gnome-vfs/1.0"redirect-Carefullybrowsermatch"^xml Spy"redirect-Carefullybrowsermatch"^DREAMWEAVER-WEBDAV-SCM1"Redirect-carefully
In the above code, LoadModule part, please open according to their own situation, if the main httpd.conf file is open, here do not open, instead, here to add LoadModule.
Then in the Apache Bin directory, in cmd mode, execute the command
Htdigest-c "d:/webserver/apache/user.passwd" dav-upload admin
Prompts for a password, and a library file corresponding to the user name and password is generated here.
Then restart Apache, enter http://127.0.0.1/uploads/in the browser address bar, if you see 403 forbidden, it should be the configuration is successful.
This profile applies to Linux system, I have been configured successfully, before tossing for a long time, took a detour, Khan! If you want to successfully manipulate files on the client, you must set the default running user daemon and destination folders for Apache to the same user, or the same group, or change the default user for Apache yourself.
WebDAV Client
1, the simplest client tool, is the Windows Explorer (recommended win7 above operating system), open My Computer, right-click "Add a network location", and then according to the wizard, enter the address http://127.0.0.1/uploads/, need to verify the time, Enter the password, in my computer created a network folder, double-click Open, you can freely manipulate the file.
The advantage of using Windows Explorer is handy, the downside is that I feel a little slow to operate and respond, so I'm looking for other tools.
2, WINSCP 5.7.3
For versions older than 5.7, previous versions are not supported. WinSCP interface Friendly, operation is very convenient, recommended.
3, Beyond Compare 4
If you often compare files and folders, recommend beyond Compare, which I started with in 2.0, very good. When you compare folders, you can select a different file system and select WebDAV. Beyond Compare 4 does not support WebDAV, the previous version is not supported.
4. Other
Bitkinex, Cyberduck, Webdrive, Davexplorer, Farnetbox, anyclient and so on, I tried the next, feeling how not so easy to use, or the UI is not friendly, or the function is not strong enough.
For more tools see here, some free some charges.
Http://en.wikipedia.org/wiki/Comparison_of_WebDAV_software
http://webdav.org/projects/
WebDAV configuration and related tools