<commit_before># scp

> Copies files between hosts on a network
> Works over a secure connection (SSH)

- upload a file, or upload and rename a file

`scp {{/local/file.txt}} {{10.0.0.1}}:{{/remote/path/}}`

`scp {{/local/file.txt}} {{10.0.0.1}}:{{/remote/path/newname.txt}}`

- download a file

`scp {{10.0.0.1}}:{{/remote/path/file.txt}} {{/local/folder}}`

- upload or download a directory

`scp -r {{/local/folder}} {{10.0.0.1}}:{{/remote/path/}}`

`scp -r {{10.0.0.1}}:{{/remote/path}} {{/local/folder}}`

- specify username on host

`scp {{/local/file.txt}} {{my_user}}@{{10.0.0.1}}:{{/remote/path}}`

- specify port on host

`scp -P {{port}} {{/local/file.txt}} {{10.0.0.1}}:{{/remote/path}}`

- copy a file from one host to another

`scp {{10.0.0.1}}:{{/remote/path/file.txt}} {{172.16.17.32}}:{{/other/remote/path}}`

- download a file with ssh key

`scp -i {{/local/key}} {{10.0.0.1}}:{{/remote/path/file.txt}} {{/local/folder}}`<commit_msg>scp: remove port example<commit_after># scp

> Copies files between hosts on a network
> Works over a secure connection (SSH)

- upload a file, or upload and rename a file

`scp {{/local/file.txt}} {{10.0.0.1}}:{{/remote/path/}}`

`scp {{/local/file.txt}} {{10.0.0.1}}:{{/remote/path/newname.txt}}`

- download a file

`scp {{10.0.0.1}}:{{/remote/path/file.txt}} {{/local/folder}}`

- upload or download a directory

`scp -r {{/local/folder}} {{10.0.0.1}}:{{/remote/path/}}`

`scp -r {{10.0.0.1}}:{{/remote/path}} {{/local/folder}}`

- specify username on host

`scp {{/local/file.txt}} {{my_user}}@{{10.0.0.1}}:{{/remote/path}}`

- copy a file from one host to another

`scp {{10.0.0.1}}:{{/remote/path/file.txt}} {{172.16.17.32}}:{{/other/remote/path}}`

- download a file with ssh key

`scp -i {{/local/key}} {{10.0.0.1}}:{{/remote/path/file.txt}} {{/local/folder}}`
{'fraction_non_alphanumeric': 0.26593406593406593, 'fraction_numerical': 0.056593406593406594, 'mean_word_length': 3.6218274111675126, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 19, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '615122', 'n_tokens_mistral': 811, 'n_tokens_neox': 781, 'n_words': 167}