Re: ssh loading at startup

2000-04-07 Thread Ian Zimmerman
 Ron == Ron Rademaker [EMAIL PROTECTED] writes:

Ron /etc/init.d/ is where you have to put the script
Ron /etc/rc[RUNLEVEL].d is where you have to put symlinks to this
Ron script

The usual way to run sshd is via inetd, though.  So maybe Beavis is
asking the wrong question, maybe ssh into his box already works
without any additional effort.  If not, look in /etc/inetd.conf for a
line mentioning ssh, perhaps there's something wrong with it.

-- 
Ian Zimmerman
Lightbinders, Inc.
2325 3rd Street #324, San Francisco, California 94107


Re: ssh loading at startup

2000-04-07 Thread Colin Watson
Ian Zimmerman [EMAIL PROTECTED] wrote:
 Ron == Ron Rademaker [EMAIL PROTECTED] writes:

Ron /etc/init.d/ is where you have to put the script
Ron /etc/rc[RUNLEVEL].d is where you have to put symlinks to this
Ron script

The usual way to run sshd is via inetd, though.

Is it? The Debian package seems to use /etc/init.d.

-- 
Colin Watson   [EMAIL PROTECTED]


Re: ssh loading at startup

2000-04-07 Thread Brad
On Fri, Apr 07, 2000 at 11:03:47AM -0700, Ian Zimmerman wrote:
 
 The usual way to run sshd is via inetd, though.  So maybe Beavis is
 asking the wrong question, maybe ssh into his box already works
 without any additional effort.  If not, look in /etc/inetd.conf for a
 line mentioning ssh, perhaps there's something wrong with it.

Read the sshd manpage, in particular the section about the -i option,
for an explanation of why sshd is notmally not run from inetd.


-- 
  finger for GPG public key.


pgpwgVf2Tso8U.pgp
Description: PGP signature


Re: ssh loading at startup

2000-04-07 Thread Adam Shand

 The usual way to run sshd is via inetd, though.  So maybe Beavis is
 asking the wrong question, maybe ssh into his box already works without
 any additional effort.  If not, look in /etc/inetd.conf for a line
 mentioning ssh, perhaps there's something wrong with it.

err, not true.  and unless you have a very unusual setup you probably don't
want to run ssh from inetd.conf.  because everytime it starts it has to
generate the session keys it can be quite slow to start if it has to fork
from inetd.

see the man page for details:

   -i Specifies  that sshd is being run from inetd.  Sshd
  is normally not run from inetd because it needs  to
  generate  the  server  key before it can respond to
  the client, and this  may  take  tens  of  seconds.
  Clients  would have to wait too long if the key was
  regenerated every time.  However,  with  small  key
  sizes (e.g.  512) using sshd from inetd may be fea
  sible.

adam.


Re: ssh loading at startup

2000-03-23 Thread Jason Christensen
On Mon, 20 Mar 2000, Beavis wrote:

 /etc/init.d/ is where i have to put the script
 
 what do i type?   sshd or run sshd

To execute the various daemon commands try:

/etc/init.d/sshd [start|stop|restart]

 
 /etc/rc[RUNLEVEL].d  is what i don't understand
 

Sym links in the /etc/rcX.d directories point to the script
/etc/init.d/sshd. If the symlink name starts with a 'S' init executes the
script with the 'start' parameter. If the name starts with a 'K', init
executes the script with the 'stop' parameter. The number in the sym
link name indicates what order the scripts in a particular rcX.d
directory are run in (the order IS important). You can of course do this
manually as described above. Read the man page on update-rc.d (symlink
management program), also read the Debian faq at:

http://www.debian.org/doc/FAQ/

Particularly section 12.5!

Jason

 
  /etc/init.d/ is where you have to put the script
  /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
  
  Ron
  
  On Mon, 20 Mar 2000, Beavis wrote:
  
   everytime i reboot my linux box i have to run the ssh deamon
   
   where can i put a line to tell it to start the ssh service at bootup
   
   thankx
   
  
  
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 
 

-
Jason Christensen   Man is tethered, spirit free;
[EMAIL PROTECTED]  What spirit is, man can be.
http://www.jasonchristensen.net/ --Mike Scott



Re: ssh loading at startup

2000-03-23 Thread Bart Friederichs
 manually as described above. Read the man page on update-rc.d (symlink
 management program), also read the Debian faq at:

When I just manually remove any links in an rcX.d directory, is that a way
to disable servers etc. at startup?

Bart


Re: ssh loading at startup

2000-03-23 Thread Jason Christensen
On Thu, 23 Mar 2000, Bart Friederichs wrote:

  manually as described above. Read the man page on update-rc.d (symlink
  management program), also read the Debian faq at:
 
 When I just manually remove any links in an rcX.d directory, is that a way
 to disable servers etc. at startup?

You got it, but why do it manually? use the update-rc.d program. Keep in
mind that your /etc/inittab defines your default run level. The run level
corresponds to the 'X' in /etc/rcX.d. Whatever symlinks are in the dir
will cause the linked scripts to be executed in the appropriate manner and
order by initd. Read the /etc/inittab file. It's the config file for
initd. As long as your inittab file is untampered with, it should be
highly commented with good info regarding run levels and other init stuff.

Jason


Re: ssh loading at startup

2000-03-22 Thread Jason Christensen

 trying to get ssh to load at boot
 
 i have created a script in /etc/init.d called ssh
 i have also created a symbolic link to it from
 /etc/rc2.d called S20ssh
 
 but upon bootup the log says
 /etc/init.d/rc: /etc/rc2.d/S20ssh:  Permission denied
 

Does root have execute permissions on the script in /etc/init.d that
S20ssh points to? The symlink permissions are ignored.

Jason

 anyone know why, or maybe an easier way then the one explained?
 
 
 
 
  i have made the script that i think will work /etc/init.d/ssh
 
  #! /bin/sh
 
  # /etc/init.d/ssh: start and stop the secure shell(tm) daemon
 
  test -x /usr/local/sbin/sshd || exit 0
 
  # Configurable options:
 
  case $1 in
start)
  echo -n Starting Secure Shell server: sshd
   start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
  /usr/sbin/sshd
  echo .
   ;;
stop)
  echo -n Stopping Secure Shell server: sshd
   start-stop-daemon --stop --quiet --oknodo --pidfile
  /var/run/sshd.pid --exec /usr/sbin/sshd
  echo .
   ;;
 
reload|force-reload)
  echo -n Reloading Secure Shell server's configuration
   start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile
  /var/run/sshd.pid --exec /usr/sbin/sshd
   echo .
   ;;
 
restart)
  echo -n Restarting Secure Shell server: sshd
   start-stop-daemon --stop --quiet --oknodo --pidfile
  /var/run/sshd.pid --exec /usr/sbin/sshd
   start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
  /usr/sbin/sshd
   echo .
   ;;
 
*)
   echo Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart}
   exit 1
  esac
 
  exit 0
 
 
 
  but how do i make a symlinks
  to it:
   /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
 
  i am a newbie
  ls 
 
 
  - Original Message -
  From: Ron Rademaker [EMAIL PROTECTED]
  To: Beavis [EMAIL PROTECTED]
  Cc: debian list debian-user@lists.debian.org; recipient list not shown:
  ;
  Sent: Monday, March 20, 2000 3:38 PM
  Subject: Re: ssh loading at startup
 
 
   /etc/init.d/ is where you have to put the script
   /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
  
   Ron
  
   On Mon, 20 Mar 2000, Beavis wrote:
  
everytime i reboot my linux box i have to run the ssh deamon
   
where can i put a line to tell it to start the ssh service at bootup
   
thankx
   
  
  
 
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 
 


Re: ssh loading at startup

2000-03-21 Thread Ron Rademaker
/etc/init.d/ is where you have to put the script
/etc/rc[RUNLEVEL].d is where you have to put symlinks to this script

Ron

On Mon, 20 Mar 2000, Beavis wrote:

 everytime i reboot my linux box i have to run the ssh deamon
 
 where can i put a line to tell it to start the ssh service at bootup
 
 thankx
 


Re: ssh loading at startup

2000-03-21 Thread Beavis
ok, i am trying to figure this out.

/etc/init.d/ is where i have to put the script

what do i type?   sshd or run sshd

/etc/rc[RUNLEVEL].d  is what i don't understand


 /etc/init.d/ is where you have to put the script
 /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
 
 Ron
 
 On Mon, 20 Mar 2000, Beavis wrote:
 
  everytime i reboot my linux box i have to run the ssh deamon
  
  where can i put a line to tell it to start the ssh service at bootup
  
  thankx
  
 
 


Re: ssh loading at startup

2000-03-21 Thread Beavis
sorry to e-mail dirrect;ly

i have made the script that i think will work /etc/init.d/ssh

#! /bin/sh

# /etc/init.d/ssh: start and stop the secure shell(tm) daemon

test -x /usr/local/sbin/sshd || exit 0

# Configurable options:

case $1 in
  start)
echo -n Starting Secure Shell server: sshd
 start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
/usr/sbin/sshd
echo .
 ;;
  stop)
echo -n Stopping Secure Shell server: sshd
 start-stop-daemon --stop --quiet --oknodo --pidfile
/var/run/sshd.pid --exec /usr/sbin/sshd
echo .
 ;;

  reload|force-reload)
echo -n Reloading Secure Shell server's configuration
 start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile
/var/run/sshd.pid --exec /usr/sbin/sshd
 echo .
 ;;

  restart)
echo -n Restarting Secure Shell server: sshd
 start-stop-daemon --stop --quiet --oknodo --pidfile
/var/run/sshd.pid --exec /usr/sbin/sshd
 start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
/usr/sbin/sshd
 echo .
 ;;

  *)
 echo Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart}
 exit 1
esac

exit 0



but how do i make a symlinks
to it:
 /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script

i am a newbie
ls 


- Original Message -
From: Ron Rademaker [EMAIL PROTECTED]
To: Beavis [EMAIL PROTECTED]
Cc: debian list debian-user@lists.debian.org; recipient list not shown:
;
Sent: Monday, March 20, 2000 3:38 PM
Subject: Re: ssh loading at startup


 /etc/init.d/ is where you have to put the script
 /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script

 Ron

 On Mon, 20 Mar 2000, Beavis wrote:

  everytime i reboot my linux box i have to run the ssh deamon
 
  where can i put a line to tell it to start the ssh service at bootup
 
  thankx
 




Re: ssh loading at startup

2000-03-21 Thread Beavis
trying to get ssh to load at boot

i have created a script in /etc/init.d called ssh
i have also created a symbolic link to it from
/etc/rc2.d called S20ssh

but upon bootup the log says
/etc/init.d/rc: /etc/rc2.d/S20ssh:  Permission denied

anyone know why, or maybe an easier way then the one explained?




 i have made the script that i think will work /etc/init.d/ssh

 #! /bin/sh

 # /etc/init.d/ssh: start and stop the secure shell(tm) daemon

 test -x /usr/local/sbin/sshd || exit 0

 # Configurable options:

 case $1 in
   start)
 echo -n Starting Secure Shell server: sshd
  start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
 /usr/sbin/sshd
 echo .
  ;;
   stop)
 echo -n Stopping Secure Shell server: sshd
  start-stop-daemon --stop --quiet --oknodo --pidfile
 /var/run/sshd.pid --exec /usr/sbin/sshd
 echo .
  ;;

   reload|force-reload)
 echo -n Reloading Secure Shell server's configuration
  start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile
 /var/run/sshd.pid --exec /usr/sbin/sshd
  echo .
  ;;

   restart)
 echo -n Restarting Secure Shell server: sshd
  start-stop-daemon --stop --quiet --oknodo --pidfile
 /var/run/sshd.pid --exec /usr/sbin/sshd
  start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
 /usr/sbin/sshd
  echo .
  ;;

   *)
  echo Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart}
  exit 1
 esac

 exit 0



 but how do i make a symlinks
 to it:
  /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script

 i am a newbie
 ls 


 - Original Message -
 From: Ron Rademaker [EMAIL PROTECTED]
 To: Beavis [EMAIL PROTECTED]
 Cc: debian list debian-user@lists.debian.org; recipient list not shown:
 ;
 Sent: Monday, March 20, 2000 3:38 PM
 Subject: Re: ssh loading at startup


  /etc/init.d/ is where you have to put the script
  /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
 
  Ron
 
  On Mon, 20 Mar 2000, Beavis wrote:
 
   everytime i reboot my linux box i have to run the ssh deamon
  
   where can i put a line to tell it to start the ssh service at bootup
  
   thankx
  
 
 



Re: ssh loading at startup

2000-03-21 Thread Bob Nielsen
Installing the ssh package SHOULD do that for you.

On Tue, Mar 21, 2000 at 12:38:29AM +0100, Ron Rademaker wrote:
 /etc/init.d/ is where you have to put the script
 /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
 
 Ron
 
 On Mon, 20 Mar 2000, Beavis wrote:
 
  everytime i reboot my linux box i have to run the ssh deamon
  
  where can i put a line to tell it to start the ssh service at bootup
  
  thankx
  
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 

-- 
Bob Nielsen, N7XY (RN2)[EMAIL PROTECTED]
Tucson, AZ DM42nh  QRP-L #1985  SOC #77http://www.primenet.com/~nielsen
 


Re: ssh loading at startup

2000-03-21 Thread dyer
Beavis wrote:

 trying to get ssh to load at boot

 i have created a script in /etc/init.d called ssh
 i have also created a symbolic link to it from
 /etc/rc2.d called S20ssh

 but upon bootup the log says
 /etc/init.d/rc: /etc/rc2.d/S20ssh:  Permission denied

 anyone know why, or maybe an easier way then the one explained?

You need to make it executable.
chmod 755 /etc/init.d/ssh

dyer



Re: ssh loading at startup

2000-03-21 Thread Hecubus
On Mon, 20 Mar 2000, Bob Nielsen wrote:

 Installing the ssh package SHOULD do that for you.

Oh, that's the easy answer for so many questions posted here. I'm still
trying to figure out the resistance to using Debian's package management
system, when that's my favorite thing about the distribution.

-- 
Hecubus, observing
 



Re: ssh loading at startup

2000-03-21 Thread Ron Rademaker
Try chmod 755 /etc/init.d/ssh

Ron

On Mon, 20 Mar 2000, Beavis wrote:

 trying to get ssh to load at boot
 
 i have created a script in /etc/init.d called ssh
 i have also created a symbolic link to it from
 /etc/rc2.d called S20ssh
 
 but upon bootup the log says
 /etc/init.d/rc: /etc/rc2.d/S20ssh:  Permission denied
 
 anyone know why, or maybe an easier way then the one explained?
 
 
 
 
  i have made the script that i think will work /etc/init.d/ssh
 
  #! /bin/sh
 
  # /etc/init.d/ssh: start and stop the secure shell(tm) daemon
 
  test -x /usr/local/sbin/sshd || exit 0
 
  # Configurable options:
 
  case $1 in
start)
  echo -n Starting Secure Shell server: sshd
   start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
  /usr/sbin/sshd
  echo .
   ;;
stop)
  echo -n Stopping Secure Shell server: sshd
   start-stop-daemon --stop --quiet --oknodo --pidfile
  /var/run/sshd.pid --exec /usr/sbin/sshd
  echo .
   ;;
 
reload|force-reload)
  echo -n Reloading Secure Shell server's configuration
   start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile
  /var/run/sshd.pid --exec /usr/sbin/sshd
   echo .
   ;;
 
restart)
  echo -n Restarting Secure Shell server: sshd
   start-stop-daemon --stop --quiet --oknodo --pidfile
  /var/run/sshd.pid --exec /usr/sbin/sshd
   start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
  /usr/sbin/sshd
   echo .
   ;;
 
*)
   echo Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart}
   exit 1
  esac
 
  exit 0
 
 
 
  but how do i make a symlinks
  to it:
   /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
 
  i am a newbie
  ls 
 
 
  - Original Message -
  From: Ron Rademaker [EMAIL PROTECTED]
  To: Beavis [EMAIL PROTECTED]
  Cc: debian list debian-user@lists.debian.org; recipient list not shown:
  ;
  Sent: Monday, March 20, 2000 3:38 PM
  Subject: Re: ssh loading at startup
 
 
   /etc/init.d/ is where you have to put the script
   /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
  
   Ron
  
   On Mon, 20 Mar 2000, Beavis wrote:
  
everytime i reboot my linux box i have to run the ssh deamon
   
where can i put a line to tell it to start the ssh service at bootup
   
thankx
   
  
  
 
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 


Re: ssh loading at startup

2000-03-21 Thread Ron Rademaker
The symlinks are links to your script that decide when the script should
be started (/etc/init.d/script start and stop). You can create symlinks
with 'ln -s ORIGINAL SCRIPT LINK', more info is in /usr/doc/sysvinit.

Ron

On Mon, 20 Mar 2000, Beavis wrote:

 sorry to e-mail dirrect;ly
 
 i have made the script that i think will work /etc/init.d/ssh
 
 #! /bin/sh
 
 # /etc/init.d/ssh: start and stop the secure shell(tm) daemon
 
 test -x /usr/local/sbin/sshd || exit 0
 
 # Configurable options:
 
 case $1 in
   start)
 echo -n Starting Secure Shell server: sshd
  start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
 /usr/sbin/sshd
 echo .
  ;;
   stop)
 echo -n Stopping Secure Shell server: sshd
  start-stop-daemon --stop --quiet --oknodo --pidfile
 /var/run/sshd.pid --exec /usr/sbin/sshd
 echo .
  ;;
 
   reload|force-reload)
 echo -n Reloading Secure Shell server's configuration
  start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile
 /var/run/sshd.pid --exec /usr/sbin/sshd
  echo .
  ;;
 
   restart)
 echo -n Restarting Secure Shell server: sshd
  start-stop-daemon --stop --quiet --oknodo --pidfile
 /var/run/sshd.pid --exec /usr/sbin/sshd
  start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
 /usr/sbin/sshd
  echo .
  ;;
 
   *)
  echo Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart}
  exit 1
 esac
 
 exit 0
 
 
 
 but how do i make a symlinks
 to it:
  /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
 
 i am a newbie
 ls 
 
 
 - Original Message -
 From: Ron Rademaker [EMAIL PROTECTED]
 To: Beavis [EMAIL PROTECTED]
 Cc: debian list debian-user@lists.debian.org; recipient list not shown:
 ;
 Sent: Monday, March 20, 2000 3:38 PM
 Subject: Re: ssh loading at startup
 
 
  /etc/init.d/ is where you have to put the script
  /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
 
  Ron
 
  On Mon, 20 Mar 2000, Beavis wrote:
 
   everytime i reboot my linux box i have to run the ssh deamon
  
   where can i put a line to tell it to start the ssh service at bootup
  
   thankx
  
 
 
 


Re: ssh loading at startup

2000-03-21 Thread Jason Christensen
There is actually a great little program to create all the sym links Ron
talks about. Read the man page for update-rc.d. It's in the dpkg
package. It makes the management of the sym links much easier!

BTW, if you had (or have) installed the ssh debian package, it would
(should) have installed the necessary boot script with sym links in the
right places.

Jason

On Tue, 21 Mar 2000, Ron Rademaker wrote:

 The symlinks are links to your script that decide when the script should
 be started (/etc/init.d/script start and stop). You can create symlinks
 with 'ln -s ORIGINAL SCRIPT LINK', more info is in /usr/doc/sysvinit.
 
 Ron
 
 On Mon, 20 Mar 2000, Beavis wrote:
 
  sorry to e-mail dirrect;ly
  
  i have made the script that i think will work /etc/init.d/ssh
  
  #! /bin/sh
  
  # /etc/init.d/ssh: start and stop the secure shell(tm) daemon
  
  test -x /usr/local/sbin/sshd || exit 0
  
  # Configurable options:
  
  case $1 in
start)
  echo -n Starting Secure Shell server: sshd
   start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
  /usr/sbin/sshd
  echo .
   ;;
stop)
  echo -n Stopping Secure Shell server: sshd
   start-stop-daemon --stop --quiet --oknodo --pidfile
  /var/run/sshd.pid --exec /usr/sbin/sshd
  echo .
   ;;
  
reload|force-reload)
  echo -n Reloading Secure Shell server's configuration
   start-stop-daemon --stop --signal 1 --quiet --oknodo --pidfile
  /var/run/sshd.pid --exec /usr/sbin/sshd
   echo .
   ;;
  
restart)
  echo -n Restarting Secure Shell server: sshd
   start-stop-daemon --stop --quiet --oknodo --pidfile
  /var/run/sshd.pid --exec /usr/sbin/sshd
   start-stop-daemon --start --quiet --pidfile /var/run/sshd.pid --exec
  /usr/sbin/sshd
   echo .
   ;;
  
*)
   echo Usage: /etc/init.d/ssh {start|stop|reload|force-reload|restart}
   exit 1
  esac
  
  exit 0
  
  
  
  but how do i make a symlinks
  to it:
   /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
  
  i am a newbie
  ls 
  
  
  - Original Message -
  From: Ron Rademaker [EMAIL PROTECTED]
  To: Beavis [EMAIL PROTECTED]
  Cc: debian list debian-user@lists.debian.org; recipient list not shown:
  ;
  Sent: Monday, March 20, 2000 3:38 PM
  Subject: Re: ssh loading at startup
  
  
   /etc/init.d/ is where you have to put the script
   /etc/rc[RUNLEVEL].d is where you have to put symlinks to this script
  
   Ron
  
   On Mon, 20 Mar 2000, Beavis wrote:
  
everytime i reboot my linux box i have to run the ssh deamon
   
where can i put a line to tell it to start the ssh service at bootup
   
thankx
   
  
  
  
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
 
 


ssh loading at startup

2000-03-20 Thread Beavis



everytime i reboot my linux box i have to run the 
ssh deamon

where can i put a line to tell it to start the ssh 
service at bootup

thankx