LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices



Reply
 
Search this Thread
Old 01-13-2005, 04:51 PM   #1
kmitz
LQ Newbie
 
Registered: Jan 2005
Location: CT, USA
Distribution: RH EL3/Fedora 3
Posts: 5

Rep: Reputation: 0
alternate config file for sshd w/ RH EL3


How can I restart my remote sshd server using a test config file (RH EL3)?

I've tried this, apparently without success:

/etc/rc.d/init.d/sshd restart -f test_sshd_config

I want to test port forwarding, but I made a stupid mistake once that cost me big $$ just to remove a single line.

I would like to be able to remotely reboot back to a known good config file in case I screw something up. (I can reboot the power supply, in an emergency...)

Thanks.
 
Old 01-13-2005, 05:46 PM   #2
kmitz
LQ Newbie
 
Registered: Jan 2005
Location: CT, USA
Distribution: RH EL3/Fedora 3
Posts: 5

Original Poster
Rep: Reputation: 0
I thought of a workaround...

I wrote a bash script called start_sshd with contents:

Code:
#!/bin/sh

/etc/rc.d/init.d/sshd stop

/usr/sbin/sshd -f /path/to/test_config_file
Seems to work on my home machine...

If there is a simpler RedHat command using chkconfig or the like, I'd appreciate a heads up.

Thanks.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
sshd config saavik Linux - Security 2 09-21-2005 03:17 AM
SSHD config question Setheck Linux - Software 4 09-18-2005 09:44 AM
How to change ssh banner in sshd.config pAn1k Linux - Networking 2 03-24-2005 05:46 PM
sshd won't reread the config file - Slackware 9.0 rose_bud4201 Linux - Software 6 05-03-2004 09:14 PM
I can't make sshd like my config file Travis86 Linux - Networking 5 07-28-2003 10:23 PM


All times are GMT -5. The time now is 07:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration