How to SSH across the internet?

I'm having a difficult time understanding local/external ip address and how computers communicate over the internet. My brother is trying to set up a home website to mess around with before he actually pays for drupal hosting, and I've installed and worked with Drupal before so I told him I'd install it for him take care of any problems he comes across, but I'd like to ssh into his computer to do this because we live in different states. The problem is I don't know how to ssh into computers over the internet, I've only ever done it locally or using a domain name.

A local SSH connection is simple, you just do something like ssh username@192.168.26.245 and if you have sshd installed on that machine you can connect to it.

But what if I want to connect to a computer outside of my local network? What do I do? Is it as simple as having him go to "what is my ip" and giving me that and using that after making sure that the ssh server is installed and running on his machine?

I plan on reading Network Warrior at some point but at the moment I'm swamped, if anyone has a link to a guide online or can explain how one goes about sshing across the internet fully here I would appreciate it greatly.

Correct, you just need his public ip address - the one he will get from whatismyip or by Googling "what is my ip". However, there may be one additional step needed. If he has a router with multiple devices connected to it, the router needs to know which device you are trying to actually SSH into. By default, it has no idea if you want to SSH into his iPhone, Xbox, or PC, so he needs to log into the router and setup port forwarding. This tells the router that any requests for SSH go to the device specified - in this case, his PC. He can learn how to do this at portforward.com or by Googling for it.

You must login with a Remote Desktop secure connection. The SSH secure shell protocol is in the command prompt side of your terminal. In Windows it is <. :/>ssh> and in Linux it will be found in the <:// help> in the help list of commands.

You do like this on local right: ssh username@192.168.26.245

now do like this on his Public IP: ssh username@211.168.26.245

********OHH BUT DON't FORGET TO ADD PORT FORWARDING ON HIS ROUTER*****

  • Why does my iPhone 5s have multiple vertical lines running across it? The lines have appeared a couple weeks ago and I thought nothing of it. The lines are enabling me from being able to tap certain places on the screen. Also, the phone occasionally spazzes out and presses random places on the screen… More and more lines are appearing daily… Please help!
  • What is SSH - Iphone Jailbreak? I have been looking into jailbreaking my iPhone and from reading many articles about how secure jailbreaking is, it says its secure unless you don't change your password when using SSH. What is SSH? Do i need it to have the full effect of a jailbroken iPhone?
  • Rainbow lines across iphone screen? I got my iphone 4s about a month ago and i've had the lifeproof case on it since day 1. I have never dropped it, or gotten water on it etc. Today i was in the midst of typing a text message, when i noticed some multicoloured lines going horizontally across my screen. When i went to my home screen i noticed that half of my screen is completely like that. Everything is still fully functioning for the time being, but its really annoying! How do i get rid of this?
  • Is tbere any major différence between thé iPhone 6 and the 6s? Whooppeee is Xmas again and my daughter wants new 2nd hand) iPhone… 2 years ago almost bought her 5 before i réaliséd that it was 5s she wanted ( cos thé 5 sucks?) And I don't want to screw up this year…