V
V
vvafree2017-07-21 20:56:00
linux
vvafree, 2017-07-21 20:56:00

Accessing ubuntu server on LAN via SSH?

Good evening. Can't get ssh access.
I registered a static ip on the poppy in the router (192.168.0.200). 192.168.0.113
Config - etc/network/interfaces.d/*

auto lo
iface lo inet loopback

auto enp5s0
iface enp5s0 inet static
address 192.168.0.113
netmask 255.255.255.0
broadcast 192.168.0.255
gateway 192.168.0.200

There is no access from under the server to the Internet.
ifconfig shows that ip is correct + rechecked all other data with the network card. Everything matches.
Network architecture - Internet -> TPlink router (local network 192.168.0.2 - 192.168.0.99) -> DLink router (local network 192.168.0.100 - 192.168.0.200) -> ubuntu server
I'm trying to connect via ssh to the Dlink LAN where the server is.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
A
Alexey Cheremisin, 2017-07-21
@leahch

You won’t succeed, you either need to make a different subnet mask or change the subnet, for example, to 192.168.1.xxx or before or after

K
Konstantin Tsvetkov, 2017-07-21
@tsklab

address 192.168.0.113
netmask 255.255.255.0
Chew: 0 - all zeros, 255 - all ones. Adding it up will result in false .

4
4X_Pro, 2017-07-22
@XXXXPro

Does it get pinged? And is the SSH server itself configured and running correctly? Is it possible to connect to it from itself a) if you connect to localhost, b) if you connect by IP address?
They also wrote absolutely correctly in the comments: you either need to change the mask or the subnet on one of the routers (the second is easier, say, to configure the subnet 192.168.1.0 on the DLink router)

G
gremlintv2, 2017-07-23
@gremlintv2

I agree that you need to select a different subnet on D-LINK + (naturally) set up port forwarding on both routers and you will be happy (in the event that you did not touch iptables on ubuntu and the sshd service is installed and running there.)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question