This question already has an answer here:
I have set up simple ssh server by using openssh on my Ubuntu.
I tried to ssh it from my Mac, which successful. But my mac is in the same subnet, which behind same router at my home. my ubunut local ip is 192.168.1.* My outgoing ip is 71..*.**
Now, I want be able to ssh my desktop even from my friend's home.
What should I do?
Obviuosly, by doing ssh username@71...* wont work. Since there are 3,4 computers are using the same ip behind my route.