Ssh to mangoH green


#1

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.


#2

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


#3

SSH access via the Ethernet port is disabled by default:


#4

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


#5

and can you now access your mangOH green over SSH ?


#6

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
The target asks to login and enter my password:
afbeelding


#7

So that’s a “YES”, then.

So you can mark the issue as SOLVED.