cazersose
le var/log/messages sont à la date d'hier a 12h55
mais
var/log/secure :
Oct 3 08:11:30 acserver2 su: pam_unix(su:session): session opened for user root by arnaud(uid=500)
Oct 3 08:45:39 acserver2 userhelper[6141]: pam_timestamp(system-config-services:auth): timestamp file `/var/run/sudo/arnaud/unknown:root' has unacceptable age (60384 seconds), disallowing access to system-config-services for user arnaud
Oct 3 08:45:44 acserver2 userhelper[6141]: pam_timestamp(system-config-services:session): updated timestamp file `/var/run/sudo/arnaud/unknown:root'
Oct 3 08:45:44 acserver2 userhelper[6145]: running '/usr/sbin/system-config-services ' with root privileges on behalf of 'arnaud'
Oct 3 08:45:58 acserver2 sshd[6218]: Server listening on :: port 22.
Oct 3 08:45:58 acserver2 sshd[6218]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Oct 3 08:46:28 acserver2 sshd[6244]: Accepted password for arnaud from 172.19.1.205 port 3097 ssh2
Oct 3 08:46:28 acserver2 sshd[6244]: pam_unix(sshd:session): session opened for user arnaud by (uid=0)
Oct 3 08:46:40 acserver2 sshd[6218]: Received signal 15; terminating.
Oct 3 08:47:21 acserver2 sshd[6244]: pam_unix(sshd:session): session closed for user arnaud
Oct 3 08:47:43 acserver2 sshd[6321]: pam_unix(sshd:session): session opened for user arnaud by (uid=0)
Oct 3 08:49:21 acserver2 sshd[6321]: pam_unix(sshd:session): session closed for user arnaud
Oct 3 08:49:40 acserver2 su: pam_unix(su:session): session closed for user root
Oct 3 08:49:49 acserver2 su: pam_unix(su:session): session opened for user root by arnaud(uid=500)
Oct 3 08:50:30 acserver2 sshd[6395]: pam_unix(sshd:session): session opened for user arnaud by (uid=0)
Oct 3 08:51:41 acserver2 sshd[6395]: pam_unix(sshd:session): session closed for user arnaud
Oct 3 08:51:51 acserver2 su: pam_unix(su:session): session closed for user root
Oct 3 08:51:56 acserver2 sshd[6457]: Server listening on :: port 22.
Oct 3 08:51:56 acserver2 sshd[6457]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Oct 3 08:52:23 acserver2 sshd[6480]: Accepted password for arnaud from 172.19.1.205 port 3162 ssh2
Oct 3 08:52:23 acserver2 sshd[6480]: pam_unix(sshd:session): session opened for user arnaud by (uid=0)
Oct 3 08:52:36 acserver2 sshd[6480]: pam_unix(sshd:session): session closed for user arnaud
Oct 3 08:56:22 acserver2 sshd[6457]: Received signal 15; terminating.
Oct 3 08:56:23 acserver2 sshd[6549]: Server listening on :: port 22.
Oct 3 08:56:23 acserver2 sshd[6549]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Oct 3 08:56:53 acserver2 sshd[6526]: fatal: Read from socket failed: Connection reset by peer
Oct 3 08:57:00 acserver2 sshd[6549]: Received signal 15; terminating.
Oct 3 08:57:03 acserver2 sshd[6629]: Server listening on :: port 22.
Oct 3 08:57:03 acserver2 sshd[6629]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Oct 3 08:57:37 acserver2 sshd[6649]: Accepted password for arnaud from 172.19.1.205 port 3206 ssh2
Oct 3 08:57:37 acserver2 sshd[6649]: pam_unix(sshd:session): session opened for user arnaud by (uid=0)
Oct 3 09:18:07 acserver2 sshd[6629]: Received signal 15; terminating.
Oct 3 09:18:07 acserver2 sshd[6750]: Server listening on :: port 22.
Oct 3 09:18:07 acserver2 sshd[6750]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Oct 3 09:18:30 acserver2 sshd[6750]: Received signal 15; terminating.
Oct 3 09:19:12 acserver2 su: pam_unix(su:session): session opened for user root by arnaud(uid=500)
Oct 3 09:20:03 acserver2 userhelper[6851]: pam_timestamp(system-config-services:auth): timestamp file `/var/run/sudo/arnaud/unknown:root' has unacceptable age (2059 seconds), disallowing access to system-config-services for user arnaud
Oct 3 09:20:07 acserver2 userhelper[6851]: pam_timestamp(system-config-services:session): updated timestamp file `/var/run/sudo/arnaud/unknown:root'
Oct 3 09:20:07 acserver2 userhelper[6854]: running '/usr/sbin/system-config-services ' with root privileges on behalf of 'arnaud'
Oct 3 09:39:16 acserver2 userhelper[6960]: pam_timestamp(pirut:auth): timestamp file `/var/run/sudo/arnaud/unknown:root' has unacceptable age (1149 seconds), disallowing access to pirut for user arnaud
Oct 3 09:39:19 acserver2 userhelper[6960]: pam_timestamp(pirut:session): updated timestamp file `/var/run/sudo/arnaud/unknown:root'
Oct 3 09:39:19 acserver2 userhelper[6963]: running '/usr/sbin/pirut ' with root privileges on behalf of 'arnaud'
Oct 3 09:45:53 acserver2 su: pam_unix(su:session): session opened for user root by arnaud(uid=500)
pourquoi le Bind se fait 0.0.0.0 : 22 normalement 172.19.1.184:22
pmarion
Sous root :
service sshd status
tail /var/log/secure
cazersose
j'ai vu sur le net et sa veut dire que le port 22 est occupé alors comment réglerai ce problème
cazersose
la commande 1 :
[root@acserver2]/>service sshd status
bash: service: command not found
la commande 2 :
[root@acserver2]/>tail /var/log/secure
Oct 3 09:18:07 acserver2 sshd[6750]: error: Bind to port 22 on 0.0.0.0 failed: Address already in use.
Oct 3 09:18:30 acserver2 sshd[6750]: Received signal 15; terminating.
Oct 3 09:19:12 acserver2 su: pam_unix(su:session): session opened for user root by arnaud(uid=500)
Oct 3 09:20:03 acserver2 userhelper[6851]: pam_timestamp(system-config-services:auth): timestamp file `/var/run/sudo/arnaud/unknown:root' has unacceptable age (2059 seconds), disallowing access to system-config-services for user arnaud
Oct 3 09:20:07 acserver2 userhelper[6851]: pam_timestamp(system-config-services:session): updated timestamp file `/var/run/sudo/arnaud/unknown:root'
Oct 3 09:20:07 acserver2 userhelper[6854]: running '/usr/sbin/system-config-services ' with root privileges on behalf of 'arnaud'
Oct 3 09:39:16 acserver2 userhelper[6960]: pam_timestamp(pirut:auth): timestamp file `/var/run/sudo/arnaud/unknown:root' has unacceptable age (1149 seconds), disallowing access to pirut for user arnaud
Oct 3 09:39:19 acserver2 userhelper[6960]: pam_timestamp(pirut:session): updated timestamp file `/var/run/sudo/arnaud/unknown:root'
Oct 3 09:39:19 acserver2 userhelper[6963]: running '/usr/sbin/pirut ' with root privileges on behalf of 'arnaud'
Oct 3 09:45:53 acserver2 su: pam_unix(su:session): session opened for user root by arnaud(uid=500)
pmarion
service sshd status
Sous root cela ira sûrement mieux. Mais je sens que je vais craquer
Hier je t'avais recommandé
service sshd stop
avant
/usr/sbin/sshd -d
Et là je pense que tu as oublié de faire le 'service sshd stop' donc le port 22 est déjà utilisé par le démon sshd démarré au boot.
Je sens que je vais craquer ! ! !
cazersose
relis en haut tu vas voir que je suis sous root ok
et la je suis sure que le service est stoppé : ok mais le bind se fait sur 0.0.0.0:22
[root@acserver2]/>/usr/sbin/sshd -d
debug1: sshd version OpenSSH_4.7p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: rexec_argv[0]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-d'
debug1: Bind to port 22 on ::.
Server listening on :: port 22.
debug1: Bind to port 22 on 0.0.0.0.
Bind to port 22 on 0.0.0.0 failed: Address already in use.
pmarion
Si tu es sous root sors en tout de suite et retournes y mais avec un 'su -', et oui j'ai bien dit <s><u><espace><tiret>.
Mais si c'est ça le problème je craque vraiment.
su - (<s><u><espace><tiret>)
service sshd status
cazersose
[root@acserver2]~>service sshd status
sshd est arrêté
j'ai une question comment faire passer mon systeme IPV6 en IPV4 ???
pmarion
Ca y est j'ai craqué ! ! !
cazersose
merci
cazersose
c'était un problème IPV6 et IPV4 de mon interface réseau voila merci et bonne journée et merci de ton aide pmarion