sshd authentication question

Matt Berney mberney@polyserve.com
Mon Mar 15 19:58:00 GMT 2004


Over time, we continue to experience intermittent sshd authentication problems in our environment.  Every so often (~ 1.5% of the time, but enough to cause our automated tests to fail), admin privileges are not granted.  Perhaps there is some setting in the /etc/sshd_config file that we need to change.  

[sshd_config]
$ grep -ve '^#' sshd_config

Port 22
StrictModes no
UsePrivilegeSeparation yes
Subsystem      sftp    /usr/sbin/sftp-server


Test: 'ssh Administrator@smoke3 id' in a loop over and over again
Script:

#!/bin/bash

USER=$1
HOST=$2

while [ true ] ; do

  echo -e "\n *** $USER on $HOST *** \n"
  ssh ${USER}@${HOST} id

  sleep 10
done

Results:

The test executed 19140 times over the weekend.  The test recorded 318 occurrences of the problem with ssh not returning the admin privileges as expected.  The impact of this interaction on our test environment is that sometimes, test fail because our tools require admin privilege to execute.  

When ssh works normally:

 *** Administrator on smoke3 ***

uid=10500(Administrator) gid=10513(Domain Users) groups=10512(Domain Admins),105
13(Domain Users),10519(Enterprise Admins),10520(Group Policy Creator Owners),105
18(Schema Admins),544(Administrators),545(Users)

When ssh works abnormally:

 *** Administrator on smoke3 *** 

uid=10500(Administrator) gid=10513(Domain Users) groups=10513(Domain Users),545(Users)


Thanks in advance,

Matt Berney


--
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/



More information about the Cygwin mailing list