DEV Community

Cover image for How to SSH to a Linux server
Ugonna
Ugonna

Posted on

How to SSH to a Linux server

To SSH into a Linux server means to connect to a Linux server.
The following below are outlined steps in connecting VM to a Linux server
open the power shell of your computer
Image description
type in the powershell: ssh username@hostname_or_ip address which is ssh azureuserugo@4.231.173.106 and then press enter
Next step is a asking are you sure you want to continue yes/no. type in yes
Image description
next is to enter your password
Image description
to run an administrative task one has to be on root
To be on root, type and enter sudo su
Image description
below is the root
Image description
To update the system type in apt update
Image description
In order to install a web server nginx, type in apt install nginx and enter
after the installation it would ask: Do you want to continue y/n. type in y
Image description
update successfulImage description
to verify if apt has successful installed on the web server is by copying the ip address of WednesdayVM (4.231.173.106) and pasting on the browser
Image description

Top comments (0)