# How to use SFTP for Uploading & Downloading files

**SFTP (Secure File Transfer Protocol)** is a network protocol designed by the Internet Engineering Task Force (IETF) as an extension of the Secure Shell (SSH) protocol. It enables secure access, transfer, and management of files over a network. SFTP encrypts data, executes commands, and provides authentication to ensure secure file transfers. It works on **port 22** and uses the client-server model. SFTP is commonly used for secure file transfers over Transport Layer Security (TLS) and in virtual private network (**VPN**) applications. It offers advantages such as data security, encryption, public key authentication, large file transfer support, and integration with VPNs and firewalls.

Here are some steps to upload files using SFTP:

1. Use your SFTP client
2. Enter the command **sftp (username)@(data center)**
3. Enter your password
4. Choose a directory
5. Enter put (myfile)

**Uploading Files**

Open a terminal and connect to the SFTP server using the sftp\_user's name along with the another\_machine\_IP. Use the following commands:

**$ sftp root\@your\_IP\_ADD**

To navigate to the SFTP user's home directory.

```
sftp> put -r your_system_path another_system_path 
```

<figure><img src="/files/BxzcEIsBr9HKgdBYv7YD" alt=""><figcaption></figcaption></figure>

Downloading Files

```
sftp> get another_system_path  your_system_path 
```

<figure><img src="/files/e72lEPHF76QFhuOPOgCN" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.neevcloud.com/neevcloud-guide/neevcloud-knowledgebase/how-to-use-sftp-for-uploading-and-downloading-files.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
