# Ssh to mangoH green

**URL:** <https://mangoh.discourse.group/t/ssh-to-mangoh-green/1873>\
**Category:** Uncategorized\
**Created:** [August 31, 2018, 3:43am UTC](https://mangoh.discourse.group/t/ssh-to-mangoh-green/1873 "2018-08-31T03:43:32Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![hposhtiw](https://avatars.discourse-cdn.com/v4/letter/h/a88e4f/32.png) [@hposhtiw](https://mangoh.discourse.group/u/hposhtiw)\
**Post date:** [August 31, 2018, 3:43am UTC](https://mangoh.discourse.group/t/ssh-to-mangoh-green/1873/1 "2018-08-31T03:43:32Z")

</div>

I would like to access the mangOH green over SSH WITHOUT a USB cable attached to my laptop to access 192.168.2.2, how do I achieve this ? I know some of you must have achieved that, please share the steps.

---

<div class="post-metadata">

**Author:** ![davidc](https://avatars.discourse-cdn.com/v4/letter/d/a183cd/32.png) [@davidc](https://mangoh.discourse.group/u/davidc)\
**Post date:** [August 31, 2018, 6:47am UTC](https://mangoh.discourse.group/t/ssh-to-mangoh-green/1873/2 "2018-08-31T06:47:37Z")

</div>

Hiya,

Sure, you can SSH to teh mangOH grenn via the Ethernet connection (assuming you have plugged the cable into a switch and have a DHCP server running somewhere on your network).

But … the IP address \*_will not_ be `192.168.2.2` unless you manually configure the network on the 'Green.

You can also get a console via the serial port.

ciao, Dave

---

<div class="post-metadata">

**Author:** ![awneil](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/awneil/32/486_2.png) [@awneil](https://mangoh.discourse.group/u/awneil)\
**Post date:** [August 31, 2018, 9:33am UTC](https://mangoh.discourse.group/t/ssh-to-mangoh-green/1873/3 "2018-08-31T09:33:21Z")

</div>

SSH access via the Ethernet port is disabled by default:

> [@SSH over Ethernet – Legato version 16.10.x](https://mangoh.discourse.group/t/ssh-over-ethernet-legato-version-16-10-x/398):
>
> When trying to SSH over the Ethernet cable with the following setup: Legato version is 16.10.0 or newer The Ethernet port is powered on and all the LED lights are on Able to ping eth0’s IP address Yet unable to successfully connect to the session, it means that the Legato framework update has disabled the ability to SSH through any network interface other than usb0. This has been done through a few IPTable rules which were added, to force drop all SSH traffic from all interfaces except usb0. …

---

<div class="post-metadata">

**Author:** ![annaertd](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@annaertd](https://mangoh.discourse.group/u/annaertd)\
**Post date:** [September 6, 2018, 1:32pm UTC](https://mangoh.discourse.group/t/ssh-to-mangoh-green/1873/4 "2018-09-06T13:32:48Z")

</div>

Hi,

I’ve enabled SSH communication over the ethernet interface eth0, by changing my iptables.  
I allowed communication over TCP port 22:

_iptables -A INPUT -i eth0 -p tcp -m tcp --dport 22 -j ACCEPT_  
_iptables –S_  
_iptables-save \> /etc/iptables/rules.v4_

greetings,  
annaertd

---

<div class="post-metadata">

**Author:** ![awneil](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/awneil/32/486_2.png) [@awneil](https://mangoh.discourse.group/u/awneil)\
**Post date:** [September 6, 2018, 1:52pm UTC](https://mangoh.discourse.group/t/ssh-to-mangoh-green/1873/5 "2018-09-06T13:52:42Z")

</div>

and can you now access your mangOH green over SSH ?

---

<div class="post-metadata">

**Author:** ![annaertd](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@annaertd](https://mangoh.discourse.group/u/annaertd)\
**Post date:** [September 6, 2018, 2:23pm UTC](https://mangoh.discourse.group/t/ssh-to-mangoh-green/1873/6 "2018-09-06T14:23:33Z")

</div>

My mangOH Green board is connected to the company network via an ethernet cable, and gets an IP adres from the DHCP server.  
I open an SSH session (via Putty) on port 22 of this IP address.  
 ![afbeelding](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/1X/f7ff860357c875c52cba11ca94839da404b620d7.png)  
The target asks to login and enter my password:  
 ![afbeelding](https://us1.discourse-cdn.com/flex016/uploads/mangoh/original/1X/9da6aec96bc28962a9aa49c4656d9d9b8734a1c4.png)

---

<div class="post-metadata">

**Author:** ![awneil](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/awneil/32/486_2.png) [@awneil](https://mangoh.discourse.group/u/awneil)\
**Post date:** [September 6, 2018, 2:40pm UTC](https://mangoh.discourse.group/t/ssh-to-mangoh-green/1873/7 "2018-09-06T14:40:25Z")

</div>

So that’s a “YES”, then.

So you can mark the issue as SOLVED.
