Connecting to a Server via SSH
So, in the previous section, we purchased a server and received access credentials. Now we can connect to this server via terminal and manage it as if it were our own computer.
Through the terminal, we will be able to install any programs, work with the file system, and run NodeJS scripts.
This is done via a special SSH protocol. It is already built into your terminal. You just need to know the server's IP address and the password for SSH. The hosting provider sent this information to your email.
Let's assume for example that your server's IP is
like this: 12.345.678.90 (you
should substitute your own). Then we can
connect to our server
by typing the following command in the
terminal:
ssh root@12.345.678.90
If the IP address is correct, you will be
prompted to enter the SSH password.
Copy the password that the
hosting provider sent you in the email
and press Enter.
Connect to your server via SSH.