S
S
Sora Dona2022-04-14 08:06:07
SSH
Sora Dona, 2022-04-14 08:06:07

How to unite Ubuntu and windows 10 in a local network?

Hello. Such a task is worth it. I have a windows 10 laptop connected to wifi. It is connected via a lan cable to a stationary PU, on which ubuntu. I've been trying to set up access via ssh for more than an hour, but I can't figure out why it doesn't work. Please help

Answer the question

In order to leave comments, you need to log in

4 answer(s)
V
Vindicar, 2022-04-14
@Vindicar

Question: SSH access from where ?
If from a laptop to a stationary computer, then there should be a minimum of problems:
1. Make sure that the traffic goes between the computer and the laptop (interfaces are up, addresses and subnets are selected correctly).
2. Make sure that the SSH server is listening to the appropriate address (well, or listening to 0.0.0.0).
The router does not participate in this scheme in any way.
If you need SSH access from inside the router network, but not from a laptop, then the matter is more complicated. In addition to the above:
3. The laptop must either do port forwarding to a stationary computer, or make a bridge for two networks - wi fi and a cable.
And if you need access from outside the router's network, then the matter becomes even more complicated:
4. The router needs an external IP that you can knock on.
5. The router must do port forwarding for the selected port for SSH to the laptop.
Without specifics (the exact problem being solved, the network diagram, application configs, a list of forwarded ports), there is nothing to advise here.

D
Drno, 2022-04-14
@Drno

On the laptop's lan - set an IP different from the Wi-Fi subnet.
For example 10.10.10.1 mask 255.255.255.0
On ubuntu we set IP 10.10.10.2 mask 255.255.255.0 On ubuntu we disable the firewall - if the new ubuntu - then the
command sudo ufw disable

I
Igor, 2022-04-16
@Lopar

Perhaps you are looking for the -b switch in ssh for systems with multiple interfaces?

-b bind_address
Use bind_address on the local machine as the source address of the connection. Only useful on systems with more than one address.

K
Konstantin Kandaurov, 2022-04-21
@kandkonst

I advise you to check the ping first. If the system unit should in principle be connected to a laptop, and not to a router, then I advise you to try replacing the usual patch cord with a cross patch cord. Perhaps the old network card of the company does not understand the usual patch cords.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question