LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices



Reply
 
Search this Thread
Old 03-30-2014, 10:57 AM   #1
Mes9
Member
 
Registered: Jan 2012
Distribution: Fedora 17
Posts: 37

Rep: Reputation: 0
Exclamation Cygwin. How to delete and reset ssh so it can be setup clean again.


I've been trying to setup my network with ssh, but I can't seem to make it work on my Windows 7. It was working at first, but after I wanted to make changes I messed it all up. Now I can't can't get it to work, I get this error:
ssh-host-config ....
Code:
/usr/bin/cygrunsrv: Error installing a service: CreateService:  Win32 error 1057:
The account name is invalid or does not exist, or the password is invalid for the account name specified.

*** ERROR: Installing sshd as a service failed!

*** Warning: Host configuration exited with 1 errors or warnings!
*** Warning: Make sure that all problems reported are fixed,
*** Warning: then re-run ssh-host-config.
This happens every time, even if I uninstall and re-install it just comes down to same error.
How can I reinstall ssh and cygrunsrv so that it is clean and can be installed fresh.(delete config files, this is what I think is doing the damage, because it's the same error even after re-install)
Please help.

Last edited by Mes9; 03-30-2014 at 03:25 PM.
 
Old 03-31-2014, 09:48 AM   #2
Addiction
LQ Newbie
 
Registered: Mar 2014
Posts: 5

Rep: Reputation: Disabled
This looks like a problem with your Windows services. It is not allowing SSHD to install as a service for whatever reason. Without it being installed as a service (which runs at boot) to ensure you can SSH into the system at anytime, Cygwin will not work. I would check to maybe see if you have an infection or some type of virus/rootkit (Malwarebytes and TDSSKiller will take care of most everything). Also, look for Windows Service repair tools or something that will restore your services to default.
 
Old 03-31-2014, 12:49 PM   #3
Doug G
Member
 
Registered: Jul 2013
Posts: 127

Rep: Reputation: Disabled
I had copied these instructions from a no-longer-existing web page, but a couple years back I uninstalled cygwin sshd completely from a w7pro machine: Use these steps at your own risk, by the way
Quote:
For Windows XP.
To remove Cygwin sshd in the cleanest possible way:

Disclaimer

cygrunsrv -E sshd

cygrunsrv -R sshd

delete the folder c:\cygwin and all its sub-folders

remove the Environment Variable CYGWIN

edit the Environment path accordingly

Start...Run... regedit and delete these two registry trees

"HKEY_CURRENT_USER_Software_Cygnus Solutions"

"HKEY_LOCAL_MACHINE_Software_Cygnus Solutions"

Go to Control Panel, Category View, Performance and Maintenance, Administrative Tools, Computer Management.
or click Start...Run...compmgmt.msc
delete the sshd user if it exists in the "System Tools" - "Local Users and Groups" - "Users" section.
EDIT: These steps were originally for XP, and you may need to re-install cygwin afterwards.

Last edited by Doug G; 03-31-2014 at 12:51 PM.
 
Old 04-01-2014, 09:41 AM   #4
Mes9
Member
 
Registered: Jan 2012
Distribution: Fedora 17
Posts: 37

Original Poster
Rep: Reputation: 0
Thumbs up

Quote:
Originally Posted by Doug G View Post
I had copied these instructions from a no-longer-existing web page, but a couple years back I uninstalled cygwin sshd completely from a w7pro machine: Use these steps at your own risk, by the way

EDIT: These steps were originally for XP, and you may need to re-install cygwin afterwards.
Thank's man, I'm trying to re-install after following your steps. Hope it works now
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Audio issues: What do I delete to make a clean start in alsa? Chriswaterguy Linux - Software 2 11-05-2011 04:11 PM
4 moderators: It would be a big help 2 delete unanswered posts to clean the internet alpha883 LQ Suggestions & Feedback 1 08-30-2009 10:17 AM
rsync (cygwin on XP) - -delete flag not working. bobby953 Linux - Newbie 1 08-05-2009 11:13 AM
cygwin ssh setup permissions error aloishis89 Linux - Software 7 02-11-2009 11:35 PM
SSH with Cygwin UltraSoul Linux - General 0 07-07-2005 01:44 PM


All times are GMT -5. The time now is 06:28 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration