mirror of https://github.com/pkg/sftp.git
Many Unix assuptions have been made when testing. Previously running tests on windows threw a panic part way through the tests. After these changes many more tests pass when the fix was isolated to the test itself, and none panic. Some tests are skipped because they do make sense on windows (chmod, chown), while others are skipped just to how the test was implemented. Lastly, some of the external executables were hard coded. Change these to look paths in TestMain first. This is done to better support windows, where openssh may be installed and sftp and sftp-server may both be in the PATH. |
||
---|---|---|
.. | ||
README.md | ||
main.go |
README.md
Example SFTP server implementation
In order to use this example you will need an RSA key.
On linux-like systems with openssh installed, you can use the command:
ssh-keygen -t rsa -f id_rsa
Then you will be able to run the sftp-server command in the current directory.