Sshd Startup

  • November 2019
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Sshd Startup as PDF for free.

More details

  • Words: 962
  • Pages: 4
from cygwin-return-105812-listarch-cygwin=sourceware dot org at cygwin dot com tue apr 05 11:24:45 2005 return-path: delivered-to: listarch-cygwin at sourceware dot org received: (qmail 9037 invoked by alias); 5 apr 2005 11:24:45 -0000 mailing-list: contact cygwin-help at cygwin dot com; run by ezmlm precedence: bulk list-subscribe: <mailto:cygwin-subscribe at cygwin dot com> list-archive: list-post: <mailto:cygwin at cygwin dot com> list-help: <mailto:cygwin-help at cygwin dot com>, sender: cygwin-owner at cygwin dot com mail-followup-to: cygwin at cygwin dot com delivered-to: mailing list cygwin at cygwin dot com received: (qmail 8856 invoked from network); 5 apr 2005 11:24:36 -0000 received: from unknown (helo sccrmhc11.comcast.net) (204.127.202.55) by sourceware.org with smtp; 5 apr 2005 11:24:36 -0000 received: from larsen-family.us ([66.31.7.212]) by comcast.net (sccrmhc11) with esmtp id <2005040511243401100budrae>; tue, 5 apr 2005 11:24:34 +0000 received: from grad-beast (unknown [10.0.164.80]) by larsen-family.us (postfix) with esmtp id bd1905423f; tue, 5 apr 2005 07:24:35 -0400 (edt) from: "john r larsen" to: giuseppe date: tue, 05 apr 2005 07:24:37 -0400 mime-version: 1.0 subject: re: sshd problems reply-to: theclaw56 at larsen-family dot us cc: cygwin at cygwin dot com message-id: <42523d35.10436.18d171cf@localhost> priority: normal in-reply-to: content-type: text/plain; charset=us-ascii content-transfer-encoding: 7bit content-description: mail message body x-issubscribed: yes the service isn't running properly. that's why you can't connect. look in /var/log/sshd.log to see what error messages may be there. next, use windows task manager to kill the cygrunsrv process and the sshd process. use this command to verify that the process is stopped: cygrunsrv -q sshd you should get this response: service sshd exists type : own process current state : stopped controls accepted : try starting it up again with this command: cygrunsrv -s sshd

if you get that windows error message again look in /var/log/sshd.log to see if new error messages have been entered. that should give you a clue as to what might be wrong. i've had entries like this before: could not load host key: /etc/ssh_host_key could not load host key: /etc/ssh_host_rsa_key could not load host key: /etc/ssh_host_dsa_key disabling protocol version 1. could not load host key disabling protocol version 2. could not load host key sshd: no hostkeys available -- exiting. things that i've tried when trouble shooting this type of problem: make sure the permissions and ownership of the files in question are these: -rw-------rw-r--r--rw-------rw-r--r--rw-------rw-r--r--

1 1 1 1 1 1

system system system system system system

none none none none none none

668 613 538 342 887 233

mar mar mar mar mar mar

26 26 26 26 26 26

10:54 10:54 10:54 10:54 10:54 10:54

ssh_host_dsa_key ssh_host_dsa_key.pub ssh_host_key ssh_host_key.pub ssh_host_rsa_key ssh_host_rsa_key.pub

if system doesn't own the files and if the permissions are too open, sshd won't startup. another directory that must have correct ownership and permissions is /var/empty. it should look like this: drwxr-xr-x+ 2 system

root

0 mar 26 10:54 empty/

i've even had trouble if ownership of /var/log/sshd.log is incorrect. simply move that file and let a new one be created to get around that problem.

you can

the important thing i've encountered in my struggles with this is to start fresh. make sure the cygrunsrv and sshd processes are really killed by using the windows task manager. verify that with "cygrunsrv -q sshd" and make sure it says the process is stopped. then start it up with "cygrunsrv -s sshd". check /var/log/sshd.log to see any error messages. good luck! john btw. i updated my work machine yesterday to the latest "cygwin_nt-5.0 1.5.14(0.126/4/2) 2005-04-01 13:40" and had no trouble. i made sure to start fresh though. i don't know if it is required or not, but before updating i set the "sshd" service to "manual" and rebooted to be sure the cygwin dll wasn't loaded. i renamed my c:\cygwin directory to c:\cygwin.hide to keep it around in case i needed to quickly switch back. then i did a fresh install using setup.exe. i

copied files from my old cygin /etc directory (ie. passwd, group, /email, /ssmtp). then to be safe i removed the service using "cygrunsrv -r sshd". i then executed the /bin/ssh-host-config file and went through its steps. i then started the service with "cygrunsrv -s sshd" and everything was fine. of course this generated new keys. you could overwrite the new keys with the old ones so that your machine still has the same fingerprint when connecting, but i didn't bother with that. on 5 apr 2005 at 8:29, giuseppe wrote: to: from: subject: date sent:

[email protected] giuseppe re: sshd problems tue, 5 apr 2005 08:29:04 +0000 (utc)

[ double-click this line for list subscription options ] > after you ran the ssh-host-config script, did you start the service with: > > cygrunsrv -s sshd > > if not, the service isn't running yet and you won't be able to connect.

thanks for answering, well i tryed and that's the answer: $ cygrunsrv -s sshd cygrunsrv: error starting a service: queryservicestatus: win32 error 1053 if i try to stop the service i get $ cygrunsrv -s sshd cygrunsrv: error stopping a service: queryservicestatus: win32 error 1053 if

i try to start again the error number changes from 1053 to 1062

$ cygrunsrv -s sshd cygrunsrv: error starting a service: queryservicestatus: win32 error 1062 i remind that i installed the last( 1 week ago) version of cygwin on a machine running windows xp professional with service pack 2. i simply installed cygwin with the setup utility and confidurate ssh using ssh-host-config answering always yes. nothing else has been done. regards giuseppe

-unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple problem reports: http://cygwin.com/problems.html documentation: http://cygwin.com/docs.html faq: http://cygwin.com/faq/ _______________________________________________________ john r larsen http://larsen-family.us -unsubscribe info: problem reports: documentation: faq:

http://cygwin.com/ml/#unsubscribe-simple http://cygwin.com/problems.html http://cygwin.com/docs.html http://cygwin.com/faq/

Related Documents

Sshd Startup
October 2019 16
Startup Pitching.docx
November 2019 13
Vista Startup
June 2020 14
Server Startup
November 2019 17
Byob Startup
November 2019 19
2019 Startup
October 2019 23