Perhaps you could start by telling us what OS you are discussing but then
again maybe the following will answer your question? The commonly used
access methods are often controlled by a daemon 'inetd' so chances are you
want to look at commenting out lines in /etc/inetd.conf, in particular lines
beginning with ftp, telnet, shell, login, exec. It should be noted that if
your system can simultaneously support IPv4 and IPv6 ( e.g. Solaris 8 )
there may be multiple instances for some services, obviously you should
comment out all instances of each service you wish to disable. Personally
speaking on one of our hosts we run with a completely empty inetd.conf and
since sshd is started independently of inetd it is unaffected. To get inetd
to reread the configuration file you must send it the hang-up signal which
can be achieved by finding the process id of the daemon and then issuing
'kill -HUP process_id'. You probably want to read the man pages for 'ps' on
your host to find out how to do this.

On Solaris and IRIX for instance you can issue the following commands

blink 52 > ps -ef | grep inetd
    root   146     1  0   Jan 05 ?        0:32 /usr/sbin/inetd -s
  kennys  2752  2705  0 09:53:25 pts/7    0:00 grep inetd
blink 53 > kill -HUP 146

On Solaris 7 and 8 you can do the same thing in a single step with

blink 54 > pkill -HUP inetd

On IRIX the equivalent is

sneeze 12 > killall -HUP inetd

Regards

Kenny

Kenneth Stevenson
IS Manager, Department of Mechanical Engineering
James Watt (South) Building, University of Glasgow, Glasgow, G12 8QQ
Phone: +44(0)1413305152 Fax: +44(0)1413304343


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of
> Albert Ferran Casas
> Sent: Tuesday, June 20, 2000 9:37 AM
> To: [EMAIL PROTECTED]
> Subject: Permit access to a server only by ssh
> Importance: High
>
>
> I'm trying to permit the access to one server only via ssh. Can anybody
> explain me how can I do that, step by step, please?
>
> Thanks!!
>
>

Reply via email to