I want to enable remote access to my machine. I have thus far enabled port forwarding on router. Lets say the static local ip address of the machine is 192.xxx.x.x. We will cal the ip address that is visible if I visit what is my ip as 84.xx.xx.xx. In the router settings it is under WAN IP. Lets say the port is 22.
I have than run
sudo service ssh start
Looking at its status, we see that it is listening.
But here is where I get lost. If I run
ssh [email protected]
I get
ssh: connect to host 84.xx.xx.xx port 22: Connection refused
As I side note, if I try to connect locally,
ssh [email protected]
everything works fine.
Now, I know that I am making a mistake somewhere. Please tell me where, and help me learn.
Edit
Example from here
For example, say you wanted to let a friend access your remote desktop, using the command-line SSH client. You would use port number 5900 (the first VNC port), and destination server localhost
ssh -R 5900:localhost:5900 guest@joes-pc
What is joes-pc here? WHich one of the two IPs i listed? How would the command look like in my case? So that it would connect to the right machine? As there are many machines in the network? I thank you for helping me learn.