Re: [Cooker] sshd fails to generate DSA host key

2002-11-07 Thread Vincent Danen

On Wednesday, November 6, 2002, at 05:32 PM, Brent Hasty wrote:


[root@h2o cups]# service sshd restart
Stopping sshd:  [  OK 
 ]
Generating SSH2 DSA host key:

It has been sitting hear for about an hour. I have tried re-installing
related packages.  I am unable login remotly to this server using ssh 
in
gnome telnit.

Anyone else experiencing problems like this...
When restarting this service using drakconf, this is what I get back

Stopping sshd:[FAILED](because it was not running)
Generating SSH2 DSA host key: /sbin/service: line 148: 6249 Terminated
$debug

How can I regenerate the DSA key so SSH2 will work properly?


I just tried it here by moving my existing DSA keys and restarting the 
server... it generated the keys just fine.

Can you try doing this on the commandline instead of via drakconf?

--
MandrakeSoft Security; http://www.mandrakesecure.net/
"lynx - source http://linsec.ca/vdanen.asc | gpg --import"
{FE6F2AFD: 88D8 0D23 8D4B 3407 5BD7 66F9 2043 D0E5 FE6F 2AFD}



PGP.sig
Description: PGP signature


Re: [Cooker] sshd fails to generate DSA host key

2002-11-06 Thread Brent Hasty
On Wednesday 06 November 2002 04:32 pm, Brent Hasty wrote:
> On Thursday 31 October 2002 12:31 pm, Brent Hasty wrote:
> > [root@h2o cups]# service sshd restart
> > Stopping sshd:  [  OK  ]
> > Generating SSH2 DSA host key:
> >
> > It has been sitting hear for about an hour. I have tried re-installing
> > related packages.  I am unable login remotly to this server using ssh in
> > gnome telnit.
> >
> > Anyone else experiencing problems like this...
>
> When restarting this service using drakconf, this is what I get back
>
> Stopping sshd:[FAILED](because it was not running)
> Generating SSH2 DSA host key: /sbin/service: line 148: 6249 Terminated
> $debug
>
> How can I regenerate the DSA key so SSH2 will work properly?
this is what the debug looks like

[root@h2o brent]# service -d sshd start
+ debug=/bin/bash -x
+ [[ sshd = --* ]]
+ [[ sshd = -* ]]
+ service=sshd
+ shift
+ options=start
+ :
+ [[ -z sshd ]]
+ [[ -z sshd ]]
+ [[ -n sshd ]]
+ [[ -n '' ]]
+ [[ -n sshd ]]
+ [[ -n '' ]]
+ [[ -z sshd ]]
+ [[ -n sshd ]]
+ break
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -z start ]]
+ check_if_inetd sshd
+ local serv=sshd
+ [[ ! -f /etc/init.d/sshd ]]
+ return
+ [[ -z sshd ]]
+ [[ -x /etc/init.d/sshd ]]
+ /bin/bash -x /etc/init.d/sshd start
+ . /etc/rc.d/init.d/functions
++ TEXTDOMAIN=initscripts
++ TEXTDOMAINDIR=/etc/locale
++ LOCPATH=/etc/locale
++ export TEXTDOMAINDIR LOCPATH
++ umask 022
++ PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/X11R6/bin
++ export PATH
++ '[' -z '' ']'
+++ /sbin/consoletype
++ CONSOLETYPE=pty
++ '[' -z '' ']'
++ COLUMNS=80
++ '[' -z '' -a -z en_US:en -a -f /etc/sysconfig/i18n -a -z '' ']'
++ '[' -z '' ']'
++ '[' -f /etc/sysconfig/init ']'
++ . /etc/sysconfig/init
+++ BOOTUP=color
+++ RES_COL=65
+++ MOVE_TO_COL=echo -en \033[65G
+++ SETCOLOR_SUCCESS=echo -en \033[1;32m
+++ SETCOLOR_FAILURE=echo -en \033[1;31m
+++ SETCOLOR_WARNING=echo -en \033[1;33m
+++ SETCOLOR_NORMAL=echo -en \033[0;39m
+++ LOGLEVEL=3
+++ PROMPT=yes
++ '[' pty = serial ']'
++ '[' color '!=' verbose ']'
++ INITLOG_ARGS=-q
+ '[' -f /etc/sysconfig/sshd ']'
+ RETVAL=0
+ prog=sshd
+ KEYGEN=/usr/bin/ssh-keygen
+ SSHD=/usr/sbin/sshd
+ RSA1_KEY=/etc/ssh/ssh_host_key
+ RSA_KEY=/etc/ssh/ssh_host_rsa_key
+ DSA_KEY=/etc/ssh/ssh_host_dsa_key
+ PID_FILE=/var/run/sshd.pid
+ start
+ do_rsa1_keygen
+ '[' '!' -s /etc/ssh/ssh_host_key ']'
+ do_rsa_keygen
+ '[' '!' -s /etc/ssh/ssh_host_rsa_key ']'
+ do_dsa_keygen
+ '[' '!' -s /etc/ssh/ssh_host_dsa_key ']'
+ gprintf 'Generating SSH2 DSA host key: '
+ '[' -x /bin/gettext -a -n 'Generating SSH2 DSA host key: ' ']'
++ LANGUAGE=
++ gettext -e --domain=initscripts 'Generating SSH2 DSA host key: '
+ local 'TEXT=Generating SSH2 DSA host key: '
+ '[' 'Generating SSH2 DSA host key: ' ']'
+ shift
+ printf 'Generating SSH2 DSA host key: '
Generating SSH2 DSA host key: + /usr/bin/ssh-keygen -q -t dsa -f 
/etc/ssh/ssh_host_dsa_key -C '' -N ''

+ failure 'DSA key generation'
+ rc=1
+ gprintf_msg_rest 'DSA key generation'
++ gprintf 'DSA key generation'
++ '[' -x /bin/gettext -a -n 'DSA key generation' ']'
+++ LANGUAGE=
+++ gettext -e --domain=initscripts 'DSA key generation'
++ local 'TEXT=DSA key generation'
++ '[' 'DSA key generation' ']'
++ shift
++ printf 'DSA key generation'
+ GPRINTF_MSG=DSA key generation
+ shift
+ GPRINTF_REST=
+ '[' -z '' ']'
+ initlog -q -n /etc/init.d/sshd -s 'DSA key generation' -e 2
+ '[' color '!=' verbose -a -z '' ']'
+ echo_failure
+ '[' color = color ']'
+ echo -en '\033[65G'
+ echo -n '['
[+ '[' color = color ']'
+ echo -en '\033[1;31m'
+ gprintf FAILED
+ '[' -x /bin/gettext -a -n FAILED ']'
++ LANGUAGE=
++ gettext -e --domain=initscripts FAILED
+ local TEXT=FAILED
+ '[' FAILED ']'
+ shift
+ printf FAILED
FAILED+ '[' color = color ']'
+ echo -en '\033[0;39m'
+ echo -n ']'
]+ echo -ne '\r'
+ return 1
+ return 1
+ echo

+ exit 1
+ exit 1
[root@h2o brent]#




Re: [Cooker] sshd fails to generate DSA host key

2002-11-06 Thread Brent Hasty
On Thursday 31 October 2002 12:31 pm, Brent Hasty wrote:
> [root@h2o cups]# service sshd restart
> Stopping sshd:  [  OK  ]
> Generating SSH2 DSA host key:
>
> It has been sitting hear for about an hour. I have tried re-installing
> related packages.  I am unable login remotly to this server using ssh in
> gnome telnit.
>
> Anyone else experiencing problems like this...
When restarting this service using drakconf, this is what I get back

Stopping sshd:[FAILED](because it was not running)
Generating SSH2 DSA host key: /sbin/service: line 148: 6249 Terminated 
$debug

How can I regenerate the DSA key so SSH2 will work properly?




Re: [Cooker] sshd fails to generate DSA host key

2002-10-31 Thread Todd Lyons
Brent Hasty wrote on Thu, Oct 31, 2002 at 12:31:38PM -0800 :
> [root@h2o cups]# service sshd restart
> Stopping sshd:  [  OK  ]
> Generating SSH2 DSA host key:
> It has been sitting hear for about an hour. I have tried re-installing
> related packages.  I am unable login remotly to this server using ssh
> Anyone else experiencing problems like this...

You know, something weird happened to me today, but I thought it was
something *I* did.

Never mind.  It *WAS* something *I* did.  Trying to help someone out, I
removed and reinstalled openssh-server to try and simulate his problems.
I guess I never started it back up.  :-/

Blue skies...   Todd
-- 
   MandrakeSoft USA   http://www.mandrakesoft.com
   Easy things should be easy, and hard things should be possible.
--Larry Wall
   Cooker Version mandrake-release-9.1-0.1mdk Kernel 2.4.19-16mdk



msg80395/pgp0.pgp
Description: PGP signature


[Cooker] sshd fails to generate DSA host key

2002-10-31 Thread Brent Hasty
[root@h2o cups]# service sshd restart
Stopping sshd:  [  OK  ]
Generating SSH2 DSA host key:

It has been sitting hear for about an hour. I have tried re-installing related 
packages.  I am unable login remotly to this server using ssh in gnome 
telnit.

Anyone else experiencing problems like this...