Score:0

Connection timed out problem

de flag

I'm new to ubuntu .. i tried to connect pc remotely using ssh and checked firewall to allow port 22 work .. i used this command to cnnect

ssh [email protected] 

but got

ssh: connect to host 111.111.111.111  port 22: Connection timed out 

i could connect the server with ip local but public ip address not

i checked ping 111.111.111.111 in the client and got

PING 111.111.111.111 (111.111.111.111) 56(84) bytes of data.
64 bytes from 111.111.111.111: icmp_seq=1 ttl=53 time=63.6 ms
64 bytes from 111.111.111.111: icmp_seq=2 ttl=53 time=62.6 ms
64 bytes from 111.111.111.111: icmp_seq=3 ttl=53 time=74.5 ms
64 bytes from 111.111.111.111: icmp_seq=4 ttl=53 time=72.5 ms
hr flag
*"i could connect the server with ip local but public ip address not"* that sounds like a port forwarding issue on your router / network edge device, rather than an Ubuntu problem
user avatar
de flag
excuse me .. what should i do ?
hr flag
It's going to depend on the make/model of the router - the basic idea is described here [How to Forward Ports on Your Router](https://www.cyberpratibha.com/blog/ssh-port-forwarding-in-router/)
user avatar
de flag
yes you right i checked it and did .. thanks a lot
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.