I bought myself a raspberry. Everything set up - everything works! But there is a problem. On the router, I configured a redirect from my external IP to the raspberry address. The site opens, everything is as it should be. But when you try to connect using an external IP via Putty or FileZill'y - an error.

Does anyone know a solution to this problem?

  • one
    Describe your redirection and how you did it. He is clearly not enough. - D-side

2 answers 2

Perhaps you are not configured to forward port? On my router (ASUS) this is done Extras. Settings -> Internet -> Port Forwarding enter image description here The default local port is 22 (SSH).

UPDATE enter image description here Here 2 records on the 10201 port server weighs, and 10202 SSH. This means that when accessing http: //vne.shni.ii.p: 10201 / the site will open, and ssh: //vne.shni.ii.p: 10202 / will access SSH

  • Here is a screenshot of prntscr.com/alix0z settings. How do I understand you need to replace the port with 22? - Slavik Okara
  • Replaced the port to 22 - successfully connected. But now in my ip site does not come off - Slavik Okara
  • You do not replace port 22, but add another port to the overshot. That is, there should be two entries. See update in my answer. - Pavel

I solved the problem by setting the external and internal ports in the range of 22 to 80 in the settings of the virtual server in the router panel.

  • you need not a range, but just two rules. One for 22, another for 80. So it will be more correct. - KoVadim