Developers
  • SWT PROTOCOL
    • Introduction
    • Accounts
    • Transactions
    • Fees
    • Smart Contracts
  • GETTING STARTED
    • Network Node
      • Introduction
      • STEP 1:RENTING A LINUX VPS
      • STEP 2:INSTALLATION OF PUTTY
      • STEP 3:INSTALLATION OF FILEZILLA
      • STEP 4:VPS CONNECTION AND LINUX CONFIGURATION WITH PUTTY (SSH)
      • STEP 5:HOW TO SECURE YOUR VPS
      • STEP 6:USING TMUX THROUGH PUTTY
      • STEP 7:UPLOAD OF THE SWT SOFTWARE WITH FILEZILLA
      • STEP 8:EXTRACT THE SWT SOFTWARE FOLDER
      • STEP 9:RUNNING THE SWT NODE THROUGH TMUX
      • STEP 10:RUNNING THE MONITORING TOOLS
  • API REFERENCE
    • Apache Thrift API
      • Transactions
      • Blocks
      • Smart contract
      • Tokens
      • Wallets
      • Sync info
      • Data structures
    • REST API
      • GetBlocks()
      • GetNodeInfo()
      • GetBalance()
      • GetWalletInfo()
      • GetTokenBalance()
      • GetTransactionsByWallet()
      • GetTransactionInfo()
      • GetEstimatedFee()
      • GetContractByAddress()
      • GetContractFromTransaction()
      • GetContractMethods()
      • ContractValidation()
      • ContractCall()
      • TransactionPack()
      • TransactionExec()
  • SMART CONTRACTS
    • Creating "Hello-world" Smart Contract
    • Smart Contract Methods
    • Smart Contract Standarts
      • Token Smart Contract
      • Escrow Smart Contract
      • Stable coin Token
  • HOW TO REST API
    • Introduction
    • Retrieve a balance from the blockchain
    • Request a specific transaction from the blockchain
    • Sending Transactions to the SWT Blockchain
    • Validating and deploying a Smart Contract with REST API
Powered by GitBook
On this page
  1. GETTING STARTED
  2. Network Node

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

PreviousSTEP 3:INSTALLATION OF FILEZILLANextSTEP 5:HOW TO SECURE YOUR VPS

Last updated 1 year ago

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.

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

Nothing is displayed on screen when you type your password, thus be attentive of what you're writing.

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

adduser swt

Enter only the highlighted commands. You can also copy and paste these commands.

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

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:

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.

chmod 700 /home/swt/

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

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.

It is very important to run the two first commands every 10 days in order to keep your system up to date.

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