commit | 93c3c03855ed6086552e02a7cf9bb25900b0117c | [log] [download] |
---|---|---|
author | WHR <msl0000023508@gmail.com> | Tue Oct 29 15:38:39 2019 +0800 |
committer | WHR <msl0000023508@gmail.com> | Tue Oct 29 15:39:16 2019 +0800 |
tree | 052cd2151ed5a26adff6ce6ad4829b4d84960a17 | |
parent | 2f1601188f7bc3b5895fb5096e337280659e25d2 [diff] |
Update ssh-to-nc wrapper
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; it 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 sftp(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>
.
Alternately, the sshfs(1)
can also be used as client; mounting from the nsftp server is possible via sshfs <server-address>:<path> <mount-point> -o directport=<port>
.