Windows 10: Cannot SSH to windows from linux - No route to host

Discus and support Cannot SSH to windows from linux - No route to host in Windows 10 Ask Insider to solve the problem; I'm trying to ssh from a linux to a windows system. I'm able to connect windows-to-linux but not linux-to-windows. On linux-to-windows ssh attempt, I... Discussion in 'Windows 10 Ask Insider' started by /u/dominic_l, Jan 14, 2021.

  1. Cannot SSH to windows from linux - No route to host


    I'm trying to ssh from a linux to a windows system. I'm able to connect windows-to-linux but not linux-to-windows.

    On linux-to-windows ssh attempt, I get an error that says No route to host.

    When I ping the IP address of the windows system from linux it says Destination Host Unreachable

    both are on the same network

    submitted by /u/dominic_l
    [link] [comments]

    :)
     
    /u/dominic_l, Jan 14, 2021
    #1

  2. ssh and Windows 10 Not Working

    There are two desktop computers in my home:

    One running Debian Linux and one running Windows 10.

    They both access the Web through a wireless router (Verizon).

    The issue is that I cannot access the Windows box via ssh (OpenSSH or PuTTY).

    I am able to access the Linux box from the Windows box - via ssh (via both OpenSSH and PuTTY).



    For the sake of simplicity and in order to eliminate Linux from the equation, I tried:

    ssh localhost

    ssh 192.168.1.2

    ssh HOME



    ssh matt@localhost

    ssh matt@192.168.1.2

    ssh matt@ HOME

    (where localhost, 192.168.1.2, and HOME are all the Windows box).

    None of those 3 worked - either in PuTTY or in OpenSSH.

    I either get:

    Connection to localhost closed by remote host.

    Connection to localhost closed.



    Or I get:

    ssh: connect to host 192.168.1.2 port 22: Connection timed out

    -

    I wanted to make sure that I could access this PC from another in one way or another
    - so I went ahead and created a homegroup which this computer and another household Windows 10 (laptop) are part of. That other Windows 10 PC
    is able to access this PC (and, for what it's worth, this PC can access the laptop).

    Note that a firewall runs on the Windows box. But I get the same results whether it's up or down.

    Anyone know what's going on?

    TIA, Matt
     
    ManThisIsReallyBizarre, Jan 14, 2021
    #2
  3. Cannot access a server on Windows 10 using ssh key

    I successfully connected to the server on Linux but I could not connect to the same server with the same ssh keys that I copied to my Windows 10 computer. I have already did a lot of research on forums regarding
    this problem but could not find the answer.

    Here is the debug message that I get on Windows:

    It says Failed to open file:C:/ProgramData/ssh/ssh_config error:2 but I do not have this file at all. Is this mandatory to have (on Linux everything is running fine without it. In addition to that
    I already have the config file on my Windows)?

    This is what my config file looks like:

    Obviously, I've got different Host, Hostname, etc. The ones here serve as examples. Please, note that I managed to run git clone on Windows using the ssh keys to verify that they work. So the problem
    is not in the keys - it's in the path, I predict.

    NB: PuTTY is the last thing I want to use. First, I want to make sure there is a simpler way of doing this without installing any of additional software.

    I would really appreciate if someone could help me out with this.
     
    ValentinNitnelav, Jan 14, 2021
    #3
  4. Cannot SSH to windows from linux - No route to host

    ssh terminal emulation

    I'm using Windows 10 ssh to connect to a linux server for a new project.

    To what value should I set my linux TERM environment variable?
     
    GregHiggins1, Jan 14, 2021
    #4
Thema:

Cannot SSH to windows from linux - No route to host

Loading...
  1. Cannot SSH to windows from linux - No route to host - Similar Threads - Cannot SSH linux

  2. Trouble Setting Up SSH Key-Based Authentication from Windows to Linux Server

    in Windows 10 Gaming
    Trouble Setting Up SSH Key-Based Authentication from Windows to Linux Server: Hello, I am attempting to set up SSH key-based authentication to log into a Linux server from my Windows 10 machine. While I am able to login using a password, my goal is to enable public key login to avoid using a password each time.Linux SideThe public key has been added to...
  3. Trouble Setting Up SSH Key-Based Authentication from Windows to Linux Server

    in Windows 10 Software and Apps
    Trouble Setting Up SSH Key-Based Authentication from Windows to Linux Server: Hello, I am attempting to set up SSH key-based authentication to log into a Linux server from my Windows 10 machine. While I am able to login using a password, my goal is to enable public key login to avoid using a password each time.Linux SideThe public key has been added to...
  4. Trouble Setting Up SSH Key-Based Authentication from Windows to Linux Server

    in Windows 10 Network and Sharing
    Trouble Setting Up SSH Key-Based Authentication from Windows to Linux Server: Hello, I am attempting to set up SSH key-based authentication to log into a Linux server from my Windows 10 machine. While I am able to login using a password, my goal is to enable public key login to avoid using a password each time.Linux SideThe public key has been added to...
  5. Windows Subsystem for Linux 2 - Addressing Traffic Routing Issues

    in Windows 10 News
    Windows Subsystem for Linux 2 - Addressing Traffic Routing Issues: The Problem So recently I was trying to run some kubectl commands using WSL2 to my home K8S cluster and encountered some strange events. Everything had worked fine when using WSL but for some reason I could now only ping external devices to my laptop (Router, Switch, Printer...
  6. Can't connect to windows shared folder ("no route to host")

    in Windows 10 Ask Insider
    Can't connect to windows shared folder ("no route to host"): Hi, I have a windows 10 PC and an Android phone. The PC has a shared folder that I want to access from the phone. However when I try to connect to the computer's IP, I get the following error "Failed to connect to /[computer ip] (port 445) from /[phone ip] (port 4XXXX) after...
  7. Route traffic + DNS through SSH (ie.: socks proxy)

    in Windows 10 Ask Insider
    Route traffic + DNS through SSH (ie.: socks proxy): Hi everyone, I have the following setup: 2 computers (A and B) Both computers run Windows 10 and I have admin rights Computer A is connected to 2 VPN networks (simultaneously) Computer A has got OpenSSH server installed and enabled Computer B should access the internet and...
  8. Can't ssh into Windows10 from Linux!!

    in Windows 10 Ask Insider
    Can't ssh into Windows10 from Linux!!: Hello guys, hope you all doing well. I trying to ssh from Linux Mint to Windows10 but it is asking for password but the problem is that I don't have any password set for my windows. So where can i find password for my windows ssh. I'm using windows 10 builtin ssh-service....
  9. SSH into Windows from Linux and run CLI/GUI apps

    in Windows 10 Ask Insider
    SSH into Windows from Linux and run CLI/GUI apps: I do not get used to wsl, and I do not think wsl2 is going to be the better solution. I run a Linux VM on my Windows hypervisor, I mounted my C drive and I'm connecting to it via shh. My first Idea was to write a bash script, that connects from the Linux VM via ssh to the...
  10. Bridged networking to Windows VM from linux host

    in Windows 10 Network and Sharing
    Bridged networking to Windows VM from linux host: Hi folks I created a working bridge to a physical NIC as per : [[email protected] hrafn]# ifconfig enp2s0f1 0.0.0.0 [[email protected] hrafn]# brctl addbr br0 [[email protected] hrafn]# brctl addif br0 enp2s0f1 <==== one of my NIC physical interfaces - [[email protected]...