<commit_before># Description

SSH2 server that posts files to http endpoint, based on the ssh2 (mscdex/ssh2) module written by <NAME> <<EMAIL>>

[Based on mscdex/ssh2](https://github.com/mscdex/ssh2)

# Getting Started

First, set your HTTP_SERVER_URL environment variable to the URL you would like the file contents posted to, and the SFTP_SERVER_PORT you want your SFTP server to listen to.

```
export HTTP_SERVER_URL=http://example.com
export SFTP_SERVER_PORT=2222
```

Clone the repo to your local workspace.

```
git clone <EMAIL>:jskirst/sftp-to-http.git
```

Inside your project directory, run npm install.

```
npm install
```<commit_msg>Adding docs around public key auth<commit_after># Description

SSH2 server that posts files to http endpoint, based on the ssh2 (mscdex/ssh2) module written by <NAME> <<EMAIL>>

[Based on mscdex/ssh2](https://github.com/mscdex/ssh2)

# Getting Started

First, set your HTTP_SERVER_URL environment variable to the URL you would like the file contents posted to, the SFTP_SERVER_PORT you want your SFTP server to listen to, and the path to your public key file path.

```
export HTTP_SERVER_URL=http://example.com
export SFTP_SERVER_PORT=2222
export SFTP_SERVER_PORT_KEY_PATH=/home/.../keypath
```

Clone the repo to your local workspace.

```
git clone <EMAIL>:jskirst/sftp-to-http.git
```

Inside your project directory, run npm install.

```
npm install
```
{'fraction_non_alphanumeric': 0.09537366548042704, 'fraction_numerical': 0.012811387900355872, 'mean_word_length': 4.907563025210084, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 11, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1479834', 'n_tokens_mistral': 474, 'n_tokens_neox': 444, 'n_words': 167}