Y
Y
yeszhanov2017-02-23 17:12:48
linux
yeszhanov, 2017-02-23 17:12:48

How to solve remote internet connection problem using ssh, Ubuntu 16.04.1?

You need to set up a remote connection over the Internet using ssh . I set up authorization by key, it works inside the network. When executing the ssh -i /home/user/id_rsa [email protected] command inside the local network, the connection succeeds. But now I try to go through the Internet using my external ip address, it displays an error connection failed.
sudo nmap -PN 178.90.248.91
Starting Nmap 7.01 ( https://nmap.org ) at 2017-02-22 21:20 +06
Nmap scan report for 178.90.248.91.megaline.telecom.kz (178.90.248.91)
Host is up (0.00076s latency).
Not shown: 992 filtered ports
PORT STATE SERVICE
25/tcp closed smtp
53/tcp closed domain
1080/tcp closed socks
2710/tcp closed sso-service
4662/tcp closed edonkey
6881/tcp closed bittorrent-tracker
6901/tcp closed jetstream
6969/ tcp closed acmsoda
Nmap done: 1 IP address (1 host up) scanned in 22.52 seconds
What could be the problem? In a router? forwarded ports, did forwarding to port 22 as written here forum.tp-linkru.ru/viewtopic.php?t=9. Router model tp link TD -w8151n.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
Y
yeszhanov, 2017-02-24
@yeszhanov

It turned out that my external ip is the NAT provider. To connect, you need to take ip from the router

D
Dmitry, 2017-02-23
@plin2s

Nmap shows you that the port is not open. Check your settings.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question