Remote ssh access on bash Windows 10

I want to connect remotely to Ubuntu bash on my Windows 10.

I have a response on port 22, but when it asks for a username and password, it says that access is denied ...

enter image description here

I already created a user "root" and I made "sudo passwd root"

Windows Firewall is disabled (service stopped).

Thanks!

+5
source share
5 answers

First, you need to stop / disable the Windows 10 SSH server firewall services or change the OpenSSH port.

After that, change / etc / ssh / sshd _config:

UsePrivilegeSeparation no PubkeyAuthentication no PasswordAuthentication yes 
+2
source

Stop ssh server and ssh broker services on Windows to avoid SSH port conflict

Makes the following changes to /etc/ssh/sshd_config :

 UsePrivilegeSeparation no PasswordAuthentication yes 

Then restart the sudo service ssh restart server. If you see the error could not load host key , then create the host key as shown below and restart the ssh service:

 sudo ssh-keygen -f /etc/ssh/ssh_host_rsa_key -b 4096 -t rsa 
+1
source

Since the windows implementation does not provide chroot, you need to change / etc / ssh / sshd _config

UsePrivilegeSeparation no

You will also need to create a user using the useradd command or so.

0
source

I am having problems after installing VirtualBox using my Bash on Ubuntu on a Windows SSH connection. I stopped VM, deleted and still could not authenticate. The user "Nobody" is true, the best solution would be to disable SSH Broker for Windows 10 or just change the port for SSH on the Linux subsystem, which I did, and works fine.

0
source

In most cases, you should also add an inbound firewall rule to allow traffic on port 22 .. The default setting only allows incoming traffic using the ssh implementation on Windows, so it does not allow traffic for an openssh server. Just follow the instructions above, and then add the rule for port 22, which is part of the Windows Firewall, and you should be installed.

0
source

All Articles