# Unable to connect to ssh root@192.168.2.2 after install cfg\_gateway.sh

**URL:** <https://mangoh.discourse.group/t/unable-to-connect-to-ssh-root-192-168-2-2-after-install-cfg-gateway-sh/10073>\
**Category:** mangOH Green\
**Created:** [August 1, 2022, 3:11pm UTC](https://mangoh.discourse.group/t/unable-to-connect-to-ssh-root-192-168-2-2-after-install-cfg-gateway-sh/10073 "2022-08-01T15:11:41Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![antoniobuono](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@antoniobuono](https://mangoh.discourse.group/u/antoniobuono)\
**Post date:** [August 1, 2022, 3:11pm UTC](https://mangoh.discourse.group/t/unable-to-connect-to-ssh-root-192-168-2-2-after-install-cfg-gateway-sh/10073/1 "2022-08-01T15:11:42Z")

</div>

Hello everyone,

after installing cfg\_gateway.sh as in the guide [Setting up MangOH Red as Router to Cellular Gateway](https://mangoh.discourse.group/t/setting-up-mangoh-red-as-router-to-cellular-gateway/1241), I am no longer able to enter the card using the ssh root command.  
I tried to follow the swiflash guide but i have the following two errors :

 ![Error](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/3/3544693ee7d703ab2aa1218578cc60c516ce9065.png)

I am using a ubuntu vm, but from windows i can see the board connected.  
How can I solve my problem?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [August 1, 2022, 3:18pm UTC](https://mangoh.discourse.group/t/unable-to-connect-to-ssh-root-192-168-2-2-after-install-cfg-gateway-sh/10073/2 "2022-08-01T15:18:05Z")

</div>

In cfg\_gateway.sh, you need to add "iptables -I INPUT -j ACCEPT＂ to shutdown the firewall after “iptables --flush”

```auto

iptables --flush
if ["$?" -ne 0]; then
    echo "Flush iptables failed"
    exit 1
fi
iptables -I INPUT -j ACCEPT

```

---

<div class="post-metadata">

**Author:** ![antoniobuono](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@antoniobuono](https://mangoh.discourse.group/u/antoniobuono)\
**Post date:** [August 1, 2022, 6:00pm UTC](https://mangoh.discourse.group/t/unable-to-connect-to-ssh-root-192-168-2-2-after-install-cfg-gateway-sh/10073/3 "2022-08-01T18:00:44Z")

</div>

Thank you jyijyi, i will do it.

My problem now is that i can’t access the board. Is it possible to reset the mangoh, or any other solution to be able to reestablish the connection through the command ssh root?

Thanks in advance.

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [August 2, 2022, 12:25am UTC](https://mangoh.discourse.group/t/unable-to-connect-to-ssh-root-192-168-2-2-after-install-cfg-gateway-sh/10073/4 "2022-08-02T00:25:53Z")

</div>

do you see any port in the device manager in Windows?

---

<div class="post-metadata">

**Author:** ![antoniobuono](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@antoniobuono](https://mangoh.discourse.group/u/antoniobuono)\
**Post date:** [August 2, 2022, 9:07am UTC](https://mangoh.discourse.group/t/unable-to-connect-to-ssh-root-192-168-2-2-after-install-cfg-gateway-sh/10073/5 "2022-08-02T09:07:24Z")

</div>

![image](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/2X/f/f318e36f43879bcaf7f1a3fcdee590d0f08bfccf.png)

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [August 2, 2022, 9:27am UTC](https://mangoh.discourse.group/t/unable-to-connect-to-ssh-root-192-168-2-2-after-install-cfg-gateway-sh/10073/6 "2022-08-02T09:27:46Z")

</div>

I can see it is working fine, I can see the modem port, NMEA port, DM port and USB ECM port.

To ping the module’ ECM port, you need to  
go to control panel → Network and sharing Center → change adapter setting → find the “Sierra wireless LEGATO Ethlink ECM” → right click → property → click the properties of "Internet Protocol Version 4 (TCP/IPv4) → set the IP address to 192.168.2.3, subnet mask to be 255.255.255.0

---

<div class="post-metadata">

**Author:** ![antoniobuono](https://avatars.discourse-cdn.com/v4/letter/a/8e8cbc/32.png) [@antoniobuono](https://mangoh.discourse.group/u/antoniobuono)\
**Post date:** [August 2, 2022, 9:37am UTC](https://mangoh.discourse.group/t/unable-to-connect-to-ssh-root-192-168-2-2-after-install-cfg-gateway-sh/10073/7 "2022-08-02T09:37:50Z")

</div>

Thank you jyijyi now im able to reconnect. What was the problem?

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [August 2, 2022, 10:16am UTC](https://mangoh.discourse.group/t/unable-to-connect-to-ssh-root-192-168-2-2-after-install-cfg-gateway-sh/10073/8 "2022-08-02T10:16:12Z")

</div>

The problem is that you need to manually set the ip address
