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. WSL2

    in Windows 10 Software and Apps
    WSL2: Hello,Could anyone please tell me whether WSL2 has any kind of connection to the internet or external network or application/service?Thanks in advance!Kind regards,Oliver Jenkins https://answers.microsoft.com/en-us/windows/forum/all/wsl2/788253f6-ebec-44ef-987f-29a2d5cb1fd1
  3. localhost

    in Windows 10 Gaming
    localhost: In my internet statistics appear several localhost conections that i can not explain. How can i remove them? https://answers.microsoft.com/en-us/windows/forum/all/localhost/adfacb60-c768-448b-b482-217ff884723a
  4. localhost

    in Windows 10 Software and Apps
    localhost: In my internet statistics appear several localhost conections that i can not explain. How can i remove them? https://answers.microsoft.com/en-us/windows/forum/all/localhost/adfacb60-c768-448b-b482-217ff884723a
  5. New Notepad - Unstable at best

    in Windows 10 Gaming
    New Notepad - Unstable at best: I just used the "new" Notepad for the first time. It is terrible.I use Notepad for making basic batch files mostly where I edit plain text and then cut into a SQL database as a series of commands. A process that used to take less than 2 minutes with good old Notepad. With the...
  6. New Notepad - Unstable at best

    in Windows 10 Software and Apps
    New Notepad - Unstable at best: I just used the "new" Notepad for the first time. It is terrible.I use Notepad for making basic batch files mostly where I edit plain text and then cut into a SQL database as a series of commands. A process that used to take less than 2 minutes with good old Notepad. With the...
  7. 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]...
  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...