Answer the question
In order to leave comments, you need to log in
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
Answer the question
In order to leave comments, you need to log in
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
address 192.168.0.113Chew: 0 - all zeros, 255 - all ones. Adding it up will result in false .
netmask 255.255.255.0
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)
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 questionAsk a Question
731 491 924 answers to any question