Wondering how to access and control your Pi from Internet . You are at the right place.
How to access a Raspberry Pi Behind a Router Using SSH .
What Do You Need ??
You would need just a few things .
1.) Raspberry Pi ( Any Model ) Connected to Your Router .
2.) SSH Client – Putty (Windows).
3.) Working Internet Connection .
4.) Static IP by ISP (Recommended ) . You could use DNS Services as well.
Enabling Secure Socket Shell (SSH )
1.) Connect your Pi to a router and to a display.
2.) Goto Terminal And Type in sudo raspi-config .
3.) Navigate to Advanced Options > SSH .
4.) Select SSH and then Enable .
5.) Now Goto Terminal And Type ifconfig .
6.) Search for inet address and Remember or Copy it .
Now once we have configured SSH . The next step is port forwarding.
1.) Come to your Web Browser Type in your default gateway address. For example- 192.168.1.1 .
2.) Login with your details .
3.) Search for Port Forward Section in your router.
4.) Click On Add / New .
Server Name – ( ANY NAME OF YOUR CHOICE ) .
Host Name / Server IP – 192.168.1.39 (The IP we got from Pi.).
Remote IP (IF Required) – 0.0.0.0
Start Port: 22
End Port : 22
Protocol – TCP
1.) Goto IPCHICKEN.
2.) Copy Your external IP .
3.) Goto Putty.
4.) Type in the external IP with Port as 22 .(Default ) .
5.) Enter Your Password. By default its.
Login – pi
Password – raspberry
There You Go . Dont forget to share.