How to Access your Raspberry Pi via SSH over the Internet (port forwarding)

How to Access your Raspberry Pi via SSH over the Internet (port forwarding)

Tony Teaches Tech

3 года назад

90,805 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

Alaa Alotaibi
Alaa Alotaibi - 25.08.2023 06:30

man this is really helpful, easy and straightforward

Ответить
Scott Forbes
Scott Forbes - 09.08.2023 04:00

My provider, unfortunately, does not offer the option of Static IP Addresses. However, I have found a clever workaround to this limitation. By utilizing a VPN, I am able to remotely tunnel into my network, granting me full control over my entire home network.

Ответить
p247
p247 - 05.07.2023 19:22

Can you also use other ports than 22?

Ответить
OSM
OSM - 31.05.2023 02:14

how do i do it with an arris att router

Ответить
ArthursHD
ArthursHD - 15.05.2023 20:57

don't expose SSH and RDP like this to the internet without hardening!

Ответить
Mining Craft
Mining Craft - 05.05.2023 23:00

you should blur the IP address to avoid any DDoS

Ответить
Prashanth B
Prashanth B - 10.04.2023 15:04

One friendly suggestion. Please draw network diagrams and corresponding animations to explain how the ports are forwarded or where the ports are open and where it needs to be forwarded.

Ответить
John B
John B - 06.04.2023 23:43

Thanks Tony

Ответить
garo kejelian
garo kejelian - 27.02.2023 12:51

Thanks you solved my problem with a simple explanation

Ответить
N H
N H - 13.02.2023 12:11

what happen if you dont have static ip for your router? most isp wont give static ip for cheap internet subscription

Ответить
Gene Code
Gene Code - 05.02.2023 20:52

if you ISP gave u a NAT'ed IP address to your router then it is impossible to do port forwarding.

Ответить
Cheap Productions
Cheap Productions - 18.01.2023 21:10

hopefully he's using a VPN

Ответить
Marc Paradis
Marc Paradis - 29.12.2022 14:00

Hey, thanks for the video.
Is it possible to access multiple local webserver??

Ответить
satejratnaparkhi1734
satejratnaparkhi1734 - 27.12.2022 11:38

How to make router ip static without purchasing??
I tried some services like no-ip but when the router reboot or sometimes later the public IP get's changed and if I'm outside I don't know the public IP of my router then how I can ssh cause no ip also not changing the previous ip to new.
Plz help......

Ответить
YKT SEREA
YKT SEREA - 11.12.2022 14:12

Bluh

Ответить
YKT SEREA
YKT SEREA - 11.12.2022 14:11

Xh

Ответить
iFlashLantern
iFlashLantern - 11.12.2022 02:46

This video answered my questions perfectly. I just have one quick question. While researching port forwarding I've seen a lot of people online talking about risks to brute force attacks from outside. I just want to be able to SSH into and communicate over TCP with my raspberry pi while I'm in school. My pi is running Ubuntu Server 20.04.5. If I enable the firewall on my pi, do you think everything would be safe?

Edit: nevermind, I found out I could just set the Ubuntu firewall (ufw) to only accept tcp connections (and ssh) over port 22 coming from specific IPs. i have it set to only accept form my router and my laptop's local (home network) ip address. once i get to school i'll add my computer's local ip from their network. i think this will be safe.

Ответить
Airbus5717
Airbus5717 - 01.12.2022 15:37

if i have a pdf on the raspberry pi how do i view it on the phone?

Ответить
Illumi
Illumi - 15.11.2022 02:45

on my router it says to input a LAN and WAN port should i just do 22 for both

Ответить
Xx_killer024_xX
Xx_killer024_xX - 09.11.2022 17:25

can you tell me how to give someone access to your pi using your router

Ответить
Xx_killer024_xX
Xx_killer024_xX - 06.11.2022 21:52

can you pls tell me how to give someone access to your pi with your public ip

Ответить
Vaibhav Patil
Vaibhav Patil - 30.08.2022 11:36

Thanks Tony!!

Ответить
Kosta
Kosta - 26.08.2022 09:38

Thank you, i've been searching for a solution forever

Ответить
Ignacio
Ignacio - 18.07.2022 17:21

Is there any kind of risk for doing this on a RaspberryPi 4, i don't think Raspberry has a firewall, and if it has it, it might not be as safe as the one in windows 10

Ответить
Bruno Mattos
Bruno Mattos - 05.07.2022 05:37

Tony, you are incredible!

Ответить
nicofish1000
nicofish1000 - 31.05.2022 09:38

thank you. I had my ssh server locally, but now that we can leave our houses again I need to be able to access it from elsewhere.....

Ответить
Ryan Dickinson
Ryan Dickinson - 21.05.2022 01:07

Do you need a static ip address to do any of this ?

Ответить
astroid 9087
astroid 9087 - 07.05.2022 20:37

If I want to ssh to 2 rpi How do I choose which one? 🤔 👍

Ответить
Fig
Fig - 02.05.2022 21:11

I know in the video, the file hi.txt was new, so :wq is perfectly fine. Tip: Get in the habit of using :x instead of :q or :wq with vi variants. When just reading/viewing a file, using :x will exit without modifying the file's timestamp (useful with backup solutions that use in part, file timestamps for backups). Where as :q will modify the file's timestamp, regardless if the file was edited or not. Also, :x acts the same as :wq for modified files.

Ответить
Milosz FEDOROWICZ
Milosz FEDOROWICZ - 28.04.2022 20:42

Is this safe ? I mean every other tutorial to do this uses a VPN, I don't know why if it's that simple !

Ответить
Tom Cobb
Tom Cobb - 25.04.2022 20:41

"St. Ignatius..." you a Jesuit?

Ответить
Ben Nicolai
Ben Nicolai - 05.04.2022 04:01

I rarely like stuff, but this gets one from me. Very good video, helped a lot. Thanks

Ответить
I like To Do Stuff
I like To Do Stuff - 04.04.2022 19:50

Umm my guy just showed us his public ip witch anyone can us to track him.

Ответить
Jake Daurham
Jake Daurham - 16.03.2022 20:24

Great video!
Will running a server on this port allow me to connect to it? Or is SSH different in some fundamental way?
I’ve only used it for remote connecting, so the concept isn’t landing for me

Ответить
Anthony McLaughlin
Anthony McLaughlin - 20.01.2022 11:54

Thanks, great video really clearly explains the solution in only 8 minutes!!

Ответить
zookoong
zookoong - 23.12.2021 09:10

As a newbie, this video helps me perfect!!!!! Thanks I've subscribed and clicked thumbs up!!!!! Thanks!!!

Ответить
Razah Razah
Razah Razah - 20.12.2021 02:36

Thank you, very helpful!

Ответить
Villocity
Villocity - 14.12.2021 04:45

hehe cox hehehe

Ответить
Filip K
Filip K - 14.12.2021 00:03

Perfect, this it exactly what I was looking for. Answer to all my questions related to the remote ssh. Thank you kindly!

Ответить
khuong nguyen
khuong nguyen - 05.12.2021 03:41

Can you port forwarding proftpd?

Ответить
Bill Loveless
Bill Loveless - 02.12.2021 19:12

Do you have to use the ports you listed? Thanks

Ответить
Daniël den Hartog
Daniël den Hartog - 25.11.2021 16:46

Hi! Just a little heads up. I forwarded port 5900~5910:TCP on my modem (this port is for VNC) and was able to use my 'whatsmyIP' IP-adress as connection adress in VNC viewer. This was sufficient to be able to remotely control my RPi! For me, the SSH port did not work, so this might be a solution for anyone with the same problem! :) Cheers

Ответить
Thomas Perri
Thomas Perri - 25.11.2021 01:36

Is this safe to do? Is a VPN recommended?

Ответить
Tìm Giay chuyen adidas real
Tìm Giay chuyen adidas real - 22.10.2021 22:16

how to enter wifi password for raspberry through phone using app or webserver??

Ответить
Oskar Nygårds
Oskar Nygårds - 05.10.2021 22:42

Thanks a lot! :-)

Ответить
jonny777bike
jonny777bike - 23.09.2021 15:42

How long that address though

Ответить
Hasan Muhammod
Hasan Muhammod - 22.07.2021 11:19

Hey, will it work if I don't have a real ip? Cause I have a shared ip

Ответить
Adhyoksh Jyoti
Adhyoksh Jyoti - 08.07.2021 11:20

I am unable to access my webserver on the raspberry pi as when I try to access the web page by entering the public IP along with the port number, it opens up my router login page which asks for username and password. I entered the username and password but it didn't work.
I am using port 8080 and it's not blocked as I checked it online.
I don't know what to do.
Please reply back asap.

Ответить