Windows 10: SSH to wsl 2

Discus and support SSH to wsl 2 in Windows 10 Ask Insider to solve the problem; Anyone know how to get ssh to work in windows wsl 2? I've followed some guides, but I'm still getting connection refused when I try to ssh into my... Discussion in 'Windows 10 Ask Insider' started by /u/MrDroo, Aug 7, 2020.

  1. /u/MrDroo Win User

    SSH to wsl 2


    Anyone know how to get ssh to work in windows wsl 2? I've followed some guides, but I'm still getting connection refused when I try to ssh into my windows ip, or it just hangs when I ssh into the wsl ip

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

    :)
     
    /u/MrDroo, Aug 7, 2020
    #1

  2. How can I SSH into my WSL bash shell from an external enviroment

    Hi,

    I work between three different machines

    Windows 10 Laptop - using WSL

    Mac OS X

    Linux Ubuntu server - accessed via a console from a Linux machine

    I have files stored in all these locations.

    WSL - only used for editing files when I don't have access to primary dev environment

    Mac OS X - used for Adobe software

    Linux server - live environment

    I need to access, pull, push and edit files/directories in all these locations. I can do this between the Linux box and Mac OS X easily using SSH but I don't seem able to find a way to SSH into the WSL on my W10 laptop.

    Is this possible? If indeed it is possible, can you link me to the help materials for setting this up please. Pretty new to the WSL so sorry for the stupid noob question.

    Thanks

    Jay
     
    JayTelford, Aug 7, 2020
    #2
  3. NickJP Win User
    Cannot upgrade installed distros in WSL to version 2

    After installing the Win10 2004 build 19041 update (running winver shows "version 2004 (OS build 19041.388)", I've tried to upgrade a couple of installed distros I had in WSL version 1 to WSL version 2 following the instructions at https://docs.microsoft.com/en-us/win.../install-win10. All the steps in the instructions compete successfully, up to the point where I try to change the WSL version of one of the installed distros to 2 at which point I see the messages below:

    Code:
    I have enabled the Virtual Machine Platform feature (it shows as on with a tick against it in Control Panel Windows features), Intel-vt virtualization is enabled in the BIOS, and running msinfo32 shows, at the bottom of the system summary listing:

    Code:
    I also tried installing another distro with the WSL default version set to 2, but attempting to launch it shows the error:

    Code:
    Any suggestions on how to get around this problem? From what I've read, WSL2 gives worthwhile speed increases over WSL1, and so is worth using if I can get it to work.
     
    NickJP, Aug 7, 2020
    #3
  4. swarfega Win User

    SSH to wsl 2

    swarfega, Aug 7, 2020
    #4
Thema:

SSH to wsl 2

Loading...
  1. SSH to wsl 2 - Similar Threads - SSH wsl

  2. Windows 11 ssh/webui problems across all ssh clients and browsers

    in Windows 10 Gaming
    Windows 11 ssh/webui problems across all ssh clients and browsers: Fresh Install of Windows 11 performed 2 weeks ago on a new SSD replacing a Windows 10 installation.Win 11 is current on updates.The Windows 10 Installation this is replacing had none of the below issues.All computers involved are in the same LAN but on different segments with...
  3. Windows 11 ssh/webui problems across all ssh clients and browsers

    in Windows 10 Software and Apps
    Windows 11 ssh/webui problems across all ssh clients and browsers: Fresh Install of Windows 11 performed 2 weeks ago on a new SSD replacing a Windows 10 installation.Win 11 is current on updates.The Windows 10 Installation this is replacing had none of the below issues.All computers involved are in the same LAN but on different segments with...
  4. win11ssh win11 cannot use ssh password free login

    in Windows 10 Gaming
    win11ssh win11 cannot use ssh password free login: win11sshed25519,sshauthorized_keyssshd_configsshd_config PermitRootLogin yesPubkeyAuthentication yesAuthorizedKeysFile .ssh/authorized_keysPasswordAuthentication noSubsystem sftp sftp-server.exeadmin...
  5. win11ssh win11 cannot use ssh password free login

    in Windows 10 Software and Apps
    win11ssh win11 cannot use ssh password free login: win11sshed25519,sshauthorized_keyssshd_configsshd_config PermitRootLogin yesPubkeyAuthentication yesAuthorizedKeysFile .ssh/authorized_keysPasswordAuthentication noSubsystem sftp sftp-server.exeadmin...
  6. not able to connect to any remote server using ssh in Windows 11 home , getting port 22:...

    in Windows 10 Gaming
    not able to connect to any remote server using ssh in Windows 11 home , getting port 22:...: I had windows 10 OS in my laptop , I got free windows 11 home upgrade. After installing windows 11 I am not able to connect to any remote vm using ssh. Getting port 22: Connection timed out error....
  7. not able to connect to any remote server using ssh in Windows 11 home , getting port 22:...

    in Windows 10 Software and Apps
    not able to connect to any remote server using ssh in Windows 11 home , getting port 22:...: I had windows 10 OS in my laptop , I got free windows 11 home upgrade. After installing windows 11 I am not able to connect to any remote vm using ssh. Getting port 22: Connection timed out error....
  8. System Hacked/Duplicated with SSH Transfers, DirectAccess, etc stuff going on We Never...

    in Windows 10 Software and Apps
    System Hacked/Duplicated with SSH Transfers, DirectAccess, etc stuff going on We Never...: Hello Microsoft Community,This is our post from another forum, but the updated part is most accurate with MSC files in heavy duplication and access being limited once certain actions happen by us. All of this stuff happens even after a fresh copy of Windows 10 is installed...
  9. SSH client can't access WSL

    in Windows 10 Ask Insider
    SSH client can't access WSL: Hi! I'm connecting to my pc over ssh form my iPad. so far it works, but i need to open the ubuntu shell. Normally, in the cmd/pwsh i just type "ubuntu" and it works, but over ssh i'm getting this error: Program "ubuntu.exe" failed to run: The file cannot be accessed by the...
  10. How to ssh into WSL 2 Ubuntu?

    in Windows 10 Ask Insider
    How to ssh into WSL 2 Ubuntu?: Please would someone be so kind as to provide a clear and neat set up for ssh-ing from an external machine into WSL 2, and that doesn't need re-doing each time the machine is restarted. TL;DR Please do not point me to a blog article unless you are *certain* it worked for...