# STEP 4:VPS CONNECTION AND LINUX CONFIGURATION WITH PUTTY (SSH)

In this part of the tutorial, you have to create a connection with PuTTY software on Linux. Below are all the steps you need to follow:I

* Create a non-root user to run the node (more secure)
* Install needed softwares including Java
* Update the Linux system

#### **1. First of all, you need to create a connection with the IP address and SSH port number of your VPS.**

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

#### **2. Log into your VPS for the first time as root.**

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

{% hint style="info" %}
Nothing is displayed on screen when you type your password, thus be attentive of what you're writing.
{% endhint %}

#### **3. Add a user named “SWT” (or any name you want). This user will run the node when installation will be done.**

{% code fullWidth="false" %}

```bash
adduser swt
```

{% endcode %}

{% hint style="info" %}
Enter only the highlighted commands. You can also copy and paste these commands.
{% endhint %}

#### **4. Write a password, confirm it and validate by entering other values.**

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

#### **5. Now you are going to add the “SWT” user in the sudo group, this will allow this user to install softwares needed and run the node. Type this command at the prompt:**

```bash
usermod -aG sudo swt
```

КАРТИНКА №3

#### **6. Type the following command. Access to the /home/swt directory will be now limited to the main user ''swt'' only.**

```bash
chmod 700 /home/swt/
```

#### **7. Reboot to apply those changes (you will get an error message, it's totally normal as PuTTY is rebooting).**

```bash
shutdown -r now 
```

#### **8. Wait a minute or two and start PuTTY again, then reconnect to your VPS. It’s more secure to connect only with the non-root user previously created (user “swt”), so log in with user “swt” you have just created, and associated password.**

#### **9. Now you're going to type the following commands to update the system and install a few tools. You can copy-paste the following commands into Putty and run them. Don’t be surprised if the password of user ‘credits’ is asked once. Just type it.**

{% hint style="info" %}
It is very important to run the two first commands every 10 days in order to keep your system up to date.
{% endhint %}

```bash
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install tmux
sudo apt-get install nmon
sudo apt-get install nload
sudo apt-get install htop
sudo apt-get install nano
sudo apt install net-tools
sudo apt install apport
sudo apt update
```


---

# 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.swttoken.com/getting-started/network-node/step-4-vps-connection-and-linux-configuration-with-putty-ssh.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.
