Step 1: Setup Remote Server - SwagatoMondal/Online-Shopping GitHub Wiki
These commands are applicable only if you're using Ubuntu & Bash CLI.
ssh root@<IP address>
- Enter your password
You'll now be logged into your remote machine. To verify you can see your CLI showing the following -
root@localhost:~#
To install the latest software updates to your remote machine, you can use the following command -
apt-get update && apt-get upgrade
NOTE : You might be asked to press continue in between updates.
The command to setup the hostname for your Ubuntu machine is as follows -
hostnamectl set-hostname <your-hostname>
To verify run the command hostname
on your CLI.
In order to set your hostname in the host file, use the following command -
nano /etc/hosts
Your file will be available now in edit mode. Underneath the localhost
entry, press Enter and add this line -
<ssh-IP Address> <press tab> <your-hostname>
Now save the changes.