Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Trouble setting up OpenSSH server on Windows 7 (can't start SSHD) [closed]

I just downloaded Cygwin for Windows 7. I want to install an OpenSSH SSH daemon, and after running "ssh-host-config", I tried starting the service by running

$net start sshd
System error 1069 has occurred.

The service did not start due to a logon failure.

I changed the password for user "sshd" to have upper/lower case letters and numbers. But I still get this error. Any help or additional troubleshooting advice is appreciated, - Dave

like image 600
Dave Avatar asked Aug 12 '11 14:08

Dave


People also ask

How do I start SSH client in Windows 7?

Go to Control Panel > System and Security > Administrative Tools and open Services. Locate OpenSSH SSH Server service. If you want the server to start automatically when your machine is started: Go to Action > Properties. In the Properties dialog, change Startup type to Automatic and confirm.

Does Windows 7 support SSH?

2. Use Windows PowerShell for SSH. If you want a Microsoft-built Windows command line SSH tool that is built into the operating system, you're in luck. Windows PowerShell has slowly been taking over from the Windows Command Prompt app since it was introduced in Windows 7.


1 Answers

I had the same issue. If you had previously tried to install openssh you need to remove it first.I followed this these two links for removing openssh:

http://pigtail.net/LRP/printsrv/vista-cygwin.txt

http://www.kgx.net.nz/2010/03/cygwin-sshd-and-windows-7/

They are mostly the same although the first link is based on the second one and the second one has some extra information about installing privileges for users.

After that you can try to reinstall openssh it should work.

like image 123
Ali Avatar answered Oct 04 '22 22:10

Ali