commit | 16cfe1445440fd34ba0d6186de2cc38d0806af17 | [log] [download] |
---|---|---|
author | WHR <msl0000023508@gmail.com> | Wed Jul 26 03:50:40 2017 +0800 |
committer | WHR <msl0000023508@gmail.com> | Wed Jul 26 03:50:40 2017 +0800 |
tree | 2f2321c8ecba3708b141c7a3dba88fef2c45e711 |
Put this dirty hack to git
Use the Secure File Transfer Protocol, originally a sub-protocol of the Secure Shell (SSH) protocol, as a standalone protocol that established directly on TCP instead of SSH. This FTP server / client is really simple, doesn't have any encryption and authentication stuff. Based on the SFTP implementation in OpenSSH, specifically sftp(1) and sftp-server(8).
Server depends on xinetd(8) and sftp-server(8) (OpenSSH). Client depends on nc(1) and ssh(1) (OpenSSH).
Setup the server by deploy the provided xinetd configuration file, modify it to fit your needs, then restart xinetd. In the client, deploy file sftp-ssh-to-nc.sh
to some where you could easily find or under the PATH; connect to server using sftp -S <path/to/sftp-ssh-to-nc.sh> [-P <port>] <server-address>
.