> Sep 30 14:59:23 host xinetd[573]: bind failed (Address already in use
(errno = 98)). service = ssh
Il y a un autre prg qui ecoute sur le port ssh !
As-tu arreter le sshd ?
> mes logs... J'ai reussi a me loger sur le systeme en venant d'un autre
range
> que celui mentionne a la directive "only_from"...
Comme xinetd n'as pu s'attache a ce port (22) c'est normal, c'est l'autre
process qui repond !
Si c'est un RedHat, Mandrake fait un
service sshd stop
chkconfig --level 234 sshd off
Et le service sshd ne redemarera plus !
Si non, utilise les outils admin de ta distribution !
Dominique
|---------+----------------------------->
| | "NDV" |
| | <[EMAIL PROTECTED]> |
| | Sent by: |
| | linux-admin@lists.|
| | unixtech.be |
| | |
| | |
| | 09/30/02 06:41 PM |
| | Please respond to |
| | linux |
| | |
|---------+----------------------------->
>-------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: [EMAIL PROTECTED]
|
| cc: (bcc: Dominique Gallot/BRU/MASTERCARD)
|
| Subject: [linux] SSH & Xinetd
|
>-------------------------------------------------------------------------------------------------------------------------------|
Hello,
J'essaie de faire du serveur SSHd un truc demarrable par xinetd. Ci dessous
mes logs... J'ai reussi a me loger sur le systeme en venant d'un autre
range
que celui mentionne a la directive "only_from"...
Il manque quelque chose dans ma configuration? server_args incomplet?
Comment
faire pour recevoir un Email lorsqu'un utilisateur est logge ou essaie de
se logger?
Merci pour vos lumieres.
Nicolas
[root@host]:cat /var/log/message | grep ssh
[...]
Sep 30 14:59:21 host rc: Starting sshd: succeeded
Sep 30 14:59:23 host xinetd[573]: bind failed (Address already in use
(errno
= 98)). service = ssh
Sep 30 15:02:48 host sshd(pam_unix)[940]: session opened for user bonhomme
by (uid=0)
Sep 30 15:05:46 host xinetd[1082]: bind failed (Address already in use
(errno
= 98)). service = ssh
Sep 30 15:06:15 host sshd(pam_unix)[930]: session closed for user bonhomme
Sep 30 15:06:32 host sshd(pam_unix)[1084]: session opened for user bonhomme
by (uid=0)
Sep 30 15:06:35 host sshd(pam_unix)[1084]: session closed for user bonhomme
Sep 30 15:07:15 host sshd(pam_unix)[1148]: session opened for user bonhomme
by (uid=0)
Sep 30 15:11:40 host xinetd[1239]: bind failed (Address already in use
(errno
= 98)). service = ssh
Sep 30 17:21:28 host sshd(pam_unix)[1148]: session closed for user bonhomme
[...]
[root@host]# cat /etc/xinetd.d/ssh
service ssh
{
disable = no
socket_type = stream
wait = no
user = root
server = /usr/sbin/sshd
port = 22
server_args = -i
only_from = 195.238.72.0
access_times = 09:00-19:00
log_on_success = USERID PID HOST EXIT DURATION
log_on_failure = ATTEMPT USERID HOST RECORD
}
[root@host]# /etc/rc.d/init.d/xinetd status
xinetd (pid 1259) is running...
[root@host]#
_______________________________________________
Linux Mailing List - http://www.unixtech.be
Archives: http://www.unixtech.be/mailman/listinfo/linux
IRC: efnet.skynet.be:6667 - #unixtech
_______________________________________________
Linux Mailing List - http://www.unixtech.be
Archives: http://www.unixtech.be/mailman/listinfo/linux
IRC: efnet.skynet.be:6667 - #unixtech