sshd cygwin 再インストール

手でユーザを削除したら、sshd サービスが残ってしまった。

レジストリを書き換えて再起動すればいいらしい。

http://superuser.com/questions/110726/how-to-uninstall-reinstall-cygwin-to-use-the-sshd

  • delete LOCAL_MACHINE\SYSTEM\ControlSet001\services\sshd
  • run 'sc delete sshd'
  • # Remove sshd service
  • cygrunsrv --stop sshd
  • cygrunsrv --remove sshd
  • # Delete any sshd or related users (such as cyg_server) from /etc/passwd
  • # (use your favorite editor)
  • # Delete any sshd or relaged users (such as cyg_server) from the system
  • net user sshd /delete
  • net user cyg_server /delete
  • reboot



Lion だとダメとか書いてある。