LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 12-28-2003, 01:57 AM   #1
eros
LQ Newbie
 
Registered: Dec 2003
Location: canada
Distribution: redhat 6.2 sparc
Posts: 9

Rep: Reputation: 0
getting sshd to start at boot


first off

running redhat 6.2 sparc
on a sparc station5

i want sshd to start at startup... i know init would probably be the best way to start it.. im just woundering how i would go about configuring init to do so.. a link to a doc on howto would be awsome!!

also telnet net is running... i dont use it but should i run it... questions questions hehe..its not a busy server at all.. but for flexibility should i run it?
 
Old 12-28-2003, 03:09 AM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
man init
man inittab

There should be a file /etc/init.d/ssh or /etc/init.d/sshd as part of the distributed ssh package.
To automaticly start it, but a symlink to /etc/rcX.d, where X is one of 1,2,3,4,5,6 or S. Meanings of these numbers (and S) depends from distribution to other, but usually 1 is for single user mode, 2-5 normal user (IIRC RH uses 5 by default; see your /etc/inittab), 6 for reboot and S for halt.

For telnet; if the computer is not behind a firewall, you shouldn't use it, but for a trusted network, telnet is good fallback system in case others don't let you in. (and for windows hosts with crippled (base) installation not having ssh clients).
 
Old 12-28-2003, 12:13 PM   #3
eros
LQ Newbie
 
Registered: Dec 2003
Location: canada
Distribution: redhat 6.2 sparc
Posts: 9

Original Poster
Rep: Reputation: 0
Exclamation

i dont have an init.d directory in /etc.. tho there is one in /etc/rc.d/init.d if thats what you ment? and even so there is no file name with sshd or ssh.
 
Old 12-30-2003, 02:42 AM   #4
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
ok, in debian init.d directory is located in /etc, but I think that is functionally the same you found. If there is no readymade initialization script for sshd, you can make one yoursef (you can take example from other files in that directory).

Alternatively (probably easier) you can just put the necessary commands ('/usr/sbin/sshd') to start sshd to the end of your rc.local file (located in /etc/, /etc/rc.d or /etc/init.d or somewhere similar places).
 
Old 12-31-2003, 03:05 AM   #5
eros
LQ Newbie
 
Registered: Dec 2003
Location: canada
Distribution: redhat 6.2 sparc
Posts: 9

Original Poster
Rep: Reputation: 0
awsome thanks all for your help!
 
Old 12-31-2003, 03:15 AM   #6
eros
LQ Newbie
 
Registered: Dec 2003
Location: canada
Distribution: redhat 6.2 sparc
Posts: 9

Original Poster
Rep: Reputation: 0
a example of this in rc.local

./usr/local/sbin/sshd

correct?
 
Old 12-31-2003, 06:03 AM   #7
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
If the sshd normally forks in to backround (that is, returns to shell / continues execution of the script. Atleast my version does so.), then that should do it.
 
Old 12-31-2003, 06:44 AM   #8
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
At least the later versions of Red Hat has a utility called ntsysv to control wich services that start at certain run levels.
Run ntsysv from console and check if you can check the sshd for start at the current run level.
 
Old 12-31-2003, 01:06 PM   #9
eros
LQ Newbie
 
Registered: Dec 2003
Location: canada
Distribution: redhat 6.2 sparc
Posts: 9

Original Poster
Rep: Reputation: 0
error reading from directory /etc/rc.d/init.d: Too many levels of symbolic links

thats the error i get when running ntsysv
 
  


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
Adding sshd as a subsystem to start at boot blur AIX 2 01-28-2005 04:57 PM
How do I automatically start sshd? jdruin Linux - Software 1 07-05-2004 09:07 PM
sshd start on boot mblanco2000 Linux - Security 5 05-18-2004 04:13 PM
couldn't start SSHD jonnyb Linux - Networking 14 02-16-2003 03:39 PM
SSHD start on boot problem... Cephlen Linux - Software 4 10-31-2002 03:50 PM


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

Main Menu
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