[KLUG Members] FW: sshd_config

Richard Zimmerman ke4rit at knbpower.com
Fri Dec 9 13:11:44 EST 2005


Mark Kowitz wrote:

>Thanks, Bruce,
>
>I did a find, looking for sshd_config--found one in /usr/etc (???).  Changed
>it, and restarted, and now it's listening on the new port.  How do I get
>sshd to get its config from /etc/ssh/sshd_config?
>
>mk
>  
>
Look in /etc/rc.d/init.d/sshd and see where it is looking for the config 
file:
<example>
#!/bin/bash
#
# Init file for OpenSSH server daemon
#
# chkconfig: 2345 55 25
# description: OpenSSH server daemon
#
# processname: sshd
# config: /etc/ssh/ssh_host_key
# config: /etc/ssh/ssh_host_key.pub
# config: /etc/ssh/ssh_random_seed
# config: /etc/ssh/sshd_config
# pidfile: /var/run/sshd.pid

# source function library
. /etc/rc.d/init.d/functions

# pull in sysconfig settings
[ -f /etc/sysconfig/sshd ] && . /etc/sysconfig/sshd
</example>

This is one my one last RH 7.3 box...

Goose


-- 
Richard "Goose" Zimmerman
Safety Assistant / IT Guru
K&B Transport, Inc. - Elkhart, IN
(574) 389-1986   (574) 389-8527 Fax
(800) 548-2718   (574) 850-5764 Cell 



More information about the Members mailing list