0

I am new to ubuntu and just started to configure my first ubuntu server.

The problem is with openssh. I made openssh server using tasksel. Forwarded port 22 on router to Server IP. In the local network all works fine. I can ssh to server from any computer. However when I try to ssh using external IP address I get error message:

Permission denied, please try again.
αғsнιη
  • 36,350
Peter
  • 3

3 Answers3

1

Please confirm port forwarding which was done is working.

If internal machine is working fine then it will refer local ip of the machine directly to access to machine on the port 22

If external ip couldn't ssh to the machine it could be a problem with port forwarding

Telnet to the your external ip and check whether it connects to your local ip machine.

BDRSuite
  • 3,196
  • 1
  • 13
  • 11
0

You will have to enable the Port Forwarding in your High Speed Modem or Personal Router (if you have one).

Log into the admin portal of your Router/HS Modem by using http://192.168.2.1 (may be 1.1 or something else as per your network range) and look for Internet Option. Setup the rule to forward the port 22 traffic to your local server. This will make sure the traffic will be forwarded to your Ubuntu server even Public IP changes from DHCP pool.

Works for me all the time and hope will work for you as well.

0

I solved this situation. Problem was in IP address as I am using 4G mobile network and they have strange network politics.

Peter
  • 3