How To Start Remote Development with Ubuntu Linux?

Jagadeesh Marali
2 min readDec 21, 2022

This blog will go through a step-by-step process of enabling ssh and remote development (assuming the machines are ubuntu Linux).

  1. Let's update the ubuntu system
sudo apt update

2. Let’s install open-ssh sever

sudo apt install openssh-server -y

3. you can check the status of the ssh by this command:

sudo systemctl status ssh

4. To enable ssh

sudo systemctl enable ssh
or
sudo systemctl start ssh

5. After the ssh is active, now let us allow port 22 in the firewall

sudo ufw allow ssh 
or
sudo ufw allow 22

Now the port is allowed by the firewall, you can connect to this ubuntu by using ssh in the local network, let’s discuss how we can connect from outside the network/web below. Before that let's see how we can connect.

To get the Ip address of the ubuntu machine, you can run

ip addr | grep inet

let’s say you have got this IP: 10.0.0.188/24, and the user is jagadeesh you can start connecting like ssh jagadeesh@10.0.0.188 it asks for a password, you can enter it and connect to the machine.

If the client (ubuntu machine) is connected to your router then you have to tell the router to forward the data packets coming from outside the network to redirect to 10.0.0.188:22 (ref: mentioned above). you can get your public IPV4 from google — what is my ip (easy way, you can type it in) and instead of using 10.0.0.188 you can directly use jagadeesh@<public-ip>

If you are a developer and use VScode or any JetBrains editor you can look out for
vs code:
https://code.visualstudio.com/docs/remote/ssh

JetBrains: https://www.jetbrains.com/remote-development/gateway/

If you enjoyed reading this blog, please consider buying me a coffee to show your support. It would mean a lot to me and help me continue creating content that you love.

https://www.buymeacoffee.com/jagadeeshmarali

(If am wrong anywhere, am ready to correct and ready to listen. let’s Learn together 🙂.)

--

--