## Tools.send2server.S2S


S2S (Send 2 Server) is designed for use with a public ssh key.


Usage

``` python
Tools.send2server.S2S(
    username=None,
    server_address=None,
    dest_path=None,
    remote=True,
    comp_filename="",
    zip_path=None,
    compressed=True,
    auto=False
)
```


## Methods

| Name | Description |
|----|----|
| [__init__()](#__init__) |  |
| [cpto()](#cpto) | Send a file. |
| [scpto()](#scpto) | Send the file safely. |
| [to_zip()](#to_zip) | Zip a folder. |

------------------------------------------------------------------------


#### \_\_init\_\_()


Usage

``` python
__init__(
    username=None,
    server_address=None,
    dest_path=None,
    remote=True,
    comp_filename="",
    zip_path=None,
    compressed=True,
    auto=False
)
```


##### Parameters


`(string): username`  
Remote server username.

`zip_path=None`  
This is the absolute path of the directory (or file) to be zipped.

`(bool): auto`  
Flag for automatically carrying out compression and SCP file sending.


------------------------------------------------------------------------


#### cpto()


Send a file.


Usage

``` python
cpto(file)
```


##### Parameters


`file`  


------------------------------------------------------------------------


#### scpto()


Send the file safely.


Usage

``` python
scpto(file)
```


##### Parameters


`file`  


------------------------------------------------------------------------


#### to_zip()


Zip a folder.


Usage

``` python
to_zip()
```
