|
|
# Connecting to the Servers
|
|
|
|
|
|
You will connect to all servers using your personal [account](pages/common/account). There are two main ways to connect to the server:
|
|
|
* Using ssh, for CLI access
|
|
|
* Using a remote desktop client called x2go for GUI access.
|
|
|
|
|
|
**IMPORTANT:** the preferred connection mechanism is ssh, as it uses fewer network resources and reduces the load on the server. So, use the remote desktop only if you *really* need a GUI interface for some reason, and remember that there are *very few* valid reasons. For example, not being familiar with the command line is *not* one of them (you are part of a computer engineering group, after all).
|
|
|
|
|
|
Depending on what you're using the servers for, you may also be able to work with a GUI from your local computer and connect to the server transparently. See for example the [page](pages/common/remote-pycharm) on remote Python deployment using PyCharm.
|
|
|
|
|
|
## Connecting with ssh
|
|
|
|
|
|
Using ssh, you can login to the server from a Linux/macOs terminal, from a Windows PowerShell, or using another client for Windows such as [PuTTy](https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html). For most of these clients, the command is just:
|
|
|
```
|
|
|
ssh <user>@<server>
|
|
|
```
|
|
|
where `<user>` is the username of your account and `<server>` is one of the [servers](pages/common/servers) hostnames.
|
|
|
|
|
|
### Maintaining a permanent Shell
|
|
|
|
|
|
Check this [guide](pages/common/permanent-shell) for how to create shells that persist even if you disconnect from the server.
|
|
|
|
|
|
## Connecting with x2go
|
|
|
|
|
|
Remote desktop access is provided via ssh tunneling, using the [X2Go client](http://wiki.x2go.org/doku.php), which is available for Windows, Linux and macOs.
|
|
|
|
|
|
To log in using the desktop, simply install and open X2Go client and follow these steps:
|
|
|
* Select `Session/New Session`.
|
|
|
* Give a meaningful name to your session
|
|
|
* Type the [hostname](pages/common/servers) of the server you want to connect to in the *Host:* field and your username in the *Login:* field.
|
|
|
* Under *Session type* select *KDE*.
|
|
|
* Leave all the rest as default.
|
|
|
|
|
|
At this point you should see the newly created session in the session list. Click on it, then simply insert your ssh password in the appropriate field and click "ok".
|
|
|
|
|
|
When you terminate your work, *do not* click on the 'x' at the top of the remote desktop window to close it. Instead, in the main X2Go window click on:
|
|
|
- The "pause" icon if you want to leave your session running, so that you can reconnect to it later.
|
|
|
- The "power off" icon, if you want to terminate your session completely.
|
|
|
|
|
|
Please always select the second option, unless you really need to keep your session alive, in order to free system resources. See the page [Maintaining a permanent shell](pages/common/permanent-shell) for a more light-way method to keep a (command line) session open even if you disconnect from the server.
|
|
|
|
|
|
## Transferring files to/from the servers
|
|
|
|
|
|
See this [page](pages/common/file-transfer) for how to transfer files to/from your local machine from/to the servers. |
|
|
\ No newline at end of file |