... | @@ -47,4 +47,31 @@ Please always select the second option, unless you really need to keep your sess |
... | @@ -47,4 +47,31 @@ Please always select the second option, unless you really need to keep your sess |
|
|
|
|
|
## Transferring files to/from the servers
|
|
## Transferring files to/from the servers
|
|
|
|
|
|
See this [page](/file-transfer) for how to transfer files to/from your local machine from/to the servers. |
|
In order to transfer files to/from the server, you can use any client that supports secure file transfers over an ssh tunnel.
|
|
\ No newline at end of file |
|
|
|
|
|
#### Transfer Files from the Command Line
|
|
|
|
|
|
|
|
From the command line, we recommend using [scp](https://linux.die.net/man/1/scp). You can click the link for the complete man page. A few basic examples are reported below:
|
|
|
|
|
|
|
|
To transfer a single file from the current directory in your local machine to your home directory in one of the servers.
|
|
|
|
```
|
|
|
|
scp myfile <user>@<server>:/home/<user>
|
|
|
|
```
|
|
|
|
|
|
|
|
Transfer a single file from your home directory in one of the servers to the current directory in your local computer:
|
|
|
|
```
|
|
|
|
scp <user>@<server>:/home/<user>/myfile .
|
|
|
|
```
|
|
|
|
|
|
|
|
Transfer an entire folder to one of the servers:
|
|
|
|
```
|
|
|
|
scp -r <path-to-folder> <user>@<server>:/home/<user>/<destination-path>
|
|
|
|
```
|
|
|
|
|
|
|
|
All examples above must be executed *from your local machine*.
|
|
|
|
|
|
|
|
#### Transfer Files with a GUI Client
|
|
|
|
|
|
|
|
There are also several GUI clients that can be used to transfer files to/from the servers using ssh/scp tunneling. One example is [FileZilla](https://filezilla-project.org/).
|
|
|
|
|
|
|
|
Some operating systems even have built-in tools to connect to remote ssh directories. Similar tools are also available in some IDEs (for example, in PyCharm and in the other JetBrain tools). See the guide on [Remote Code Deployment](/remote-code) for more details. |
|
|
|
\ No newline at end of file |