Lines Matching full:sshd
45 /usr/sbin/sshd openssh
149 if ! csih_create_unprivileged_user sshd
151 csih_error_recoverable "Could not create user 'sshd'!"
152 csih_error_recoverable "You will not be able to run an sshd service"
154 csih_error_recoverable "Make sure to create a non-privileged user 'sshd'"
202 local _sshd_inetd_conf="${_inetcnf_dir}/sshd-inetd"
203 local _sshd_inetd_conf_tmp="${_inetcnf_dir}/sshd-inetd.$$"
214 # check for sshd OR ssh in top-level inetd.conf file, and remove
256 /usr/bin/grep -q '^[[:space:]]*sshd' "${_inetcnf}" && _with_comment=0
258 # check for sshd in top-level inetd.conf file, and remove
260 if [ `/usr/bin/grep -q '^#\?[[:space:]]*sshd' "${_inetcnf}"; echo $?` -eq 0 ]
262 /usr/bin/grep -v '^#\?[[:space:]]*sshd' "${_inetcnf}" >> "${_inetcnf_tmp}"
267 csih_inform "Removed sshd from ${_inetcnf}"
269 csih_warning "Removing sshd from ${_inetcnf} failed!"
274 csih_warning "Removing sshd from ${_inetcnf} failed!"
284 echo 'ssh stream tcp nowait root /usr/sbin/sshd sshd -i' >> "${_inetcnf}"
286 echo '# ssh stream tcp nowait root /usr/sbin/sshd sshd -i' >> "${_inetcnf}"
359 if [ -f ${LOCALSTATEDIR}/log/sshd.log ]
361 if ! chown "${run_service_as}".544 ${LOCALSTATEDIR}/log/sshd.log >/dev/null 2>&1
363 csih_warning "Couldn't change owner of ${LOCALSTATEDIR}/log/sshd.log!"
379 # Install sshd as a service
389 csih_inform "Sshd service is already installed."
392 echo -e "${_csih_QUERY_STR} Do you want to install sshd as a service?"
417 csih_select_privileged_username ${opt_f} ${opt_u} sshd
454 if /usr/bin/cygrunsrv -I ${service_name} -d "CYGWIN ${service_name}" -p /usr/sbin/sshd \
458 csih_inform "The sshd service has been installed under the LocalSystem"
464 if /usr/bin/cygrunsrv -I ${service_name} -d "CYGWIN ${service_name}" -p /usr/sbin/sshd \
470 csih_inform "The sshd service has been installed under the '${run_service_as}'"
481 csih_error_recoverable "Installing sshd as a service failed!"
585 echo " --name -N <name> sshd windows service name."
586 echo " --port -p <n> sshd listens on port n."
590 echo " instead of LocalSystem for sshd service."
602 # Check for running ssh/sshd processes first. Refuse to do anything while
604 if /usr/bin/ps -ef | /usr/bin/grep -q '/sshd\?$'