Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ssh remote access on bash Windows 10

Tags:

windows

ssh

I'd like to connect remotely to the Ubuntu bash on my Windows 10.

I've got an answer on port 22 but when it asks for username and password, it says access denied...

enter image description here

I've already created a user "root" and i've done a "sudo passwd root"

Windows firewall is deactivated (service stopped).

Thanks !

like image 258
Cheris Les Avatar asked Aug 05 '16 12:08

Cheris Les


2 Answers

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

Makes below changes in /etc/ssh/sshd_config:

UsePrivilegeSeparation no
PasswordAuthentication yes

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

sudo ssh-keygen -f /etc/ssh/ssh_host_rsa_key -b 4096 -t rsa
like image 107
volatilevar Avatar answered Sep 24 '22 07:09

volatilevar


First, You need to Stop/Disable Windows 10 SSH Server Broker Services or Change OpenSSH Port.

After that, modify the /etc/ssh/sshd_config:

UsePrivilegeSeparation no
PubkeyAuthentication no
PasswordAuthentication yes
like image 24
Nobody Avatar answered Sep 21 '22 07:09

Nobody