Windows 10: sshing to localhost WSL2 is unstable at best. misery and despair

Discus and support sshing to localhost WSL2 is unstable at best. misery and despair in Windows 10 Virtualization to solve the problem; I have a wsl issue that's been driving me mad for weeks: when booting the pc, there's a big chance that ssh connections to wsl won't be operational... Discussion in 'Windows 10 Virtualization' started by Lucide, Dec 1, 2020.

  1. Lucide Win User

    sshing to localhost WSL2 is unstable at best. misery and despair


    I have a wsl issue that's been driving me mad for weeks: when booting the pc, there's a big chance that ssh connections to wsl won't be operational until one or more reboots. I get a Connection refused error.
    I went through lots and lots of similar github issues, but none of them really went anywhere.
    I think my localhost forwarding is fine, because I can access a wsl http server (python3 -m http.server 8080) from the browser on Windows (http://localhost:8080/). VSCode's remote development works fine too, it uses a custom server.
    I have Bitdefender's firewall enabled, and while currently there's a bug that breaks ICMP ping to localhost when the firewall is enabled, everything works the same with it either being on or off. Network level interferences are usually logged, no entries are created, so maybe it can be excluded.

    My ssh has been configured by this script, I see no obscure things there. I use ssh through CLion to do cross platform C development and it's amazing, when it works.
    sshd_config:
    Code:
    I'm an IT student, but I'm not an experienced Linux user. My vm is using Ubuntu 20.04, regularly updated.

    Some people have mentioned that localhost is resolved to ::1 on windows, and Ubuntu is expecting a IPv4 address instead. I'm not too sure about that.. This setup occasionally does work.

    I'm pretty much lost and I don't know what to think of anymore.
    Windows 10 Pro 20H2 19042.630

    :)
     
    Lucide, Dec 1, 2020
    #1

  2. WSL2 for windows

    I have failed into installing WSL for Windows. I have read here: https://docs.microsoft.com/en-us/win.../install-win10 how to do it, and at step 4:


    1. Download the latest package:
      [COLOR=var(--text)][COLOR=var(--info-dark)] Note[/COLOR]
      If you're using an ARM64 machine, please download the ARM64 package instead. If you're not sure what kind of machine you have, open Command Prompt or PowerShell and enter: systeminfo | find "System Type".
      [/COLOR]
    2. Run the update package downloaded in the previous step. (Double-click to run - you will be prompted for elevated permissions, select ‘yes’ to approve this installation.)

    I encountered:


    sshing to localhost WSL2 is unstable at best. misery and despair [​IMG]


    and


    sshing to localhost WSL2 is unstable at best. misery and despair [​IMG]


    What I did wrong ? I have the following W10 version:

    sshing to localhost WSL2 is unstable at best. misery and despair [​IMG]


    Another question: am I in the the right forum ?
     
    mesajflaviu, Dec 1, 2020
    #2
  3. Access localhost from another computer

    Localhost, as the name suggests, points at the localhost. Use the hostname or IP from your computer on their PC's. ie something in the 192.168.x.x or 10.0.0.x range most likely.
     
    DanTheBanjoman, Dec 1, 2020
    #3
  4. sshing to localhost WSL2 is unstable at best. misery and despair

    WSL2 and Environment Variables

    I am trying to install Selenium and build a python application that includes automating web page completion (login info). I would like to built the program using VSCode and WSL2. I've installed selenium in WSL2. Selenium requires a webdriver api to
    be installed and included on the system PATH in the environment variables. If I install the msedgedriver.exe for Windows, in Windows, and add it to PATH, will it work with Selenium installed on WSL2 in VSCode using Python?
     
    JohnSampson5, Dec 1, 2020
    #4
Thema:

sshing to localhost WSL2 is unstable at best. misery and despair

Loading...
  1. sshing to localhost WSL2 is unstable at best. misery and despair - Similar Threads - sshing localhost WSL2

  2. Problem with wsl2?

    in Windows 10 Ask Insider
    Problem with wsl2?: I followed these instructions, but Linux woulsd not install from Microsoft store. https://docs.microsoft.com/en-us/windows/wsl/install-win10 However the Ubuntu will not install, error 0x80370102 being the difficulty. Virtual Machine Platform is enabled, when I checked...
  3. WSL2 for windows

    in Windows 10 Software and Apps
    WSL2 for windows: I have failed into installing WSL for Windows. I have read here: https://docs.microsoft.com/en-us/win.../install-win10 how to do it, and at step 4: Download the latest package: WSL2 Linux kernel update package for x64 machines Note If you're using an ARM64 machine,...
  4. WSL2 for Windows

    in Windows 10 Software and Apps
    WSL2 for Windows: Hi, I am trying to get WSL2/Ubuntu going for my class. It is going fine but I am at the point where I downloaded Ubuntu from the WS store and it is in the terminal for Ubuntu saying "Installing, this may take a few minutes". It has been at least 30 minutes. I don't want to...
  5. localhost

    in Windows 10 Customization
    localhost: Hello I am using xampp to set up my own web server. My problem is I think, not being able to access port 80, which I think is related to iisrid. Anyway if any one knows what is happening here and has any suggestions would be appreciated[ATTACH]...
  6. localhost missing

    in Windows 10 Support
    localhost missing: For many years I have used a program called get_iplayer which downloads BBC TV programmes. When the programme has been selected get_iplayer starts with: "Listening on 127.0.0.1:1935" Now it has just started issuing the following message: http://localhost:1935 Application...
  7. Localhost 404 Errors

    in Windows 10 Network and Sharing
    Localhost 404 Errors: Last night, I upgraded my Windows 10 Pro to Version 1903 (OS Build 18362.267). Now my localhost applications don't work. They're either saying they can't establish a connection, or are giving 404 errors. For example, I run a Minecraft Server on Multicraft, which calls for...
  8. localhost

    in Windows 10 Network and Sharing
    localhost: I am still not able to configure localhost in windows 10. I am web developer https://answers.microsoft.com/en-us/windows/forum/all/localhost/ab2ec8c7-6da0-4753-b640-691c4254c5ac
  9. Automatic Update Despair.

    in Windows 10 Installation and Upgrade
    Automatic Update Despair.: Can I set the updates to download in the background then once they are in, wait for a date where I can just turn the computer on and let it work overnight? Mac OS does this, why can't Windows? I am really getting discouraged by the behavior of Windows 10 Pro - it was not...
  10. Homegroup misery

    in Windows 10 Network and Sharing
    Homegroup misery: I have 2 desktops and a laptop all running windows 10. Homegroup was set up and working and then stopped working for no reason. I have done dozens of searches online trying to find a solution i.e. deleting the homegroup, trying to find the password to join it. I can find...