Bonjour les linuxiens,
Je viens faire appel à votre aide afin de résoudre un petit souci qui me fait tourner en rond.
j'ai des scripts dans une tache cron qui ont besoins de se connecter a des serveur distant par ssh.
Le seul souci, c'est que l'agent SSH perd la clef enregistrer,(ce qui bien sur fait echoué mes scripts) => ssh-add -t0 CLEFprivé , il me semble d'après la documentation que l'enregistrement de la clef devrait être infinie.
Je ne vois rien de spécial dans auth.log, message.log , mais dans le daemon.log j'ai l'impression que mon agent est redémarré par systemd un peu trop souvent.
Pourquoi j'en sais absolument rien.
Mais je ne sais pas qui le redémarre, comme ça !
Jul 11 02:27:47 DebianDesktop ssh-agent[995]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 11 02:27:47 DebianDesktop systemd[978]: Started SSH key agent.
Jul 11 02:29:39 DebianDesktop systemd[978]: Stopping SSH key agent...
Jul 11 02:29:39 DebianDesktop systemd[978]: Stopped SSH key agent.
Jul 11 02:32:06 DebianDesktop systemd[1094]: Started SSH key agent.
Jul 11 02:32:06 DebianDesktop ssh-agent[1111]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 11 02:36:43 DebianDesktop systemd[1094]: Stopping SSH key agent...
Jul 11 02:36:43 DebianDesktop systemd[1094]: Stopped SSH key agent.
Jul 11 02:40:56 DebianDesktop ssh-agent[1316]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 11 02:40:56 DebianDesktop systemd[1298]: Started SSH key agent.
Jul 11 02:41:13 DebianDesktop systemd[1298]: Stopping SSH key agent...
Jul 11 02:41:13 DebianDesktop systemd[1298]: Stopped SSH key agent.
Jul 11 02:47:54 DebianDesktop ssh-agent[1367]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 11 02:47:54 DebianDesktop systemd[1349]: Started SSH key agent.
Jul 11 02:49:32 DebianDesktop systemd[1349]: Stopping SSH key agent...
Jul 11 02:49:32 DebianDesktop systemd[1349]: Stopped SSH key agent.
Jul 11 02:52:06 DebianDesktop ssh-agent[1561]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 11 02:52:06 DebianDesktop systemd[1543]: Started SSH key agent.
Jul 11 02:52:23 DebianDesktop systemd[1543]: Stopping SSH key agent...
Jul 11 02:52:23 DebianDesktop systemd[1543]: Stopped SSH key agent.
Jul 11 14:19:43 DebianDesktop systemd[1809]: Started SSH key agent.
Jul 11 14:19:43 DebianDesktop ssh-agent[1828]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 11 14:41:01 DebianDesktop systemd[1809]: Stopping SSH key agent...
Jul 11 14:41:01 DebianDesktop systemd[1809]: Stopped SSH key agent.
Jul 12 03:08:58 DebianDesktop systemd[2814]: Started SSH key agent.
Jul 12 03:08:58 DebianDesktop ssh-agent[2832]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 12 03:28:08 DebianDesktop systemd[2814]: Stopping SSH key agent...
Jul 12 03:28:08 DebianDesktop systemd[2814]: Stopped SSH key agent.
Jul 12 10:29:36 DebianDesktop systemd[14257]: Started SSH key agent.
Jul 12 10:29:36 DebianDesktop ssh-agent[14274]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 12 15:46:18 DebianDesktop systemd[14257]: Stopping SSH key agent...
Jul 12 15:46:18 DebianDesktop systemd[14257]: Stopped SSH key agent.
Jul 12 21:00:59 DebianDesktop ssh-agent[15078]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 12 21:00:59 DebianDesktop systemd[15060]: Started SSH key agent.
Jul 12 22:01:33 DebianDesktop ssh-agent[1015]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 12 22:01:33 DebianDesktop systemd[998]: Started SSH key agent.
Jul 12 22:06:28 DebianDesktop ssh-agent[995]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 12 22:06:28 DebianDesktop systemd[978]: Started SSH key agent.
Jul 13 05:37:13 DebianDesktop systemd[978]: Stopping SSH key agent...
Jul 13 05:37:13 DebianDesktop systemd[978]: Stopped SSH key agent.
Jul 13 10:11:21 DebianDesktop systemd[3363]: Started SSH key agent.
Jul 13 10:11:21 DebianDesktop ssh-agent[3380]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 14 02:55:40 DebianDesktop systemd[927]: Started SSH key agent.
Jul 14 02:55:40 DebianDesktop ssh-agent[944]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 14 03:01:13 DebianDesktop systemd[917]: Started SSH key agent.
Jul 14 03:01:13 DebianDesktop ssh-agent[934]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 14 03:09:17 DebianDesktop systemd[938]: Started SSH key agent.
Jul 14 03:09:17 DebianDesktop ssh-agent[955]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 14 03:18:43 DebianDesktop systemd[970]: Started SSH key agent.
Jul 14 03:18:43 DebianDesktop ssh-agent[987]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 14 03:22:33 DebianDesktop systemd[970]: Stopping SSH key agent...
Jul 14 03:22:33 DebianDesktop systemd[970]: Stopped SSH key agent.
Jul 14 03:30:16 DebianDesktop systemd[1124]: Started SSH key agent.
Jul 14 03:30:16 DebianDesktop ssh-agent[1142]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 14 04:19:48 DebianDesktop systemd[1124]: Stopping SSH key agent...
Jul 14 04:19:48 DebianDesktop systemd[1124]: Stopped SSH key agent.
Jul 15 00:35:06 DebianDesktop systemd[2740]: Started SSH key agent.
Jul 15 00:35:06 DebianDesktop ssh-agent[2758]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 15 02:21:58 DebianDesktop systemd[2740]: Stopping SSH key agent...
Jul 15 02:21:58 DebianDesktop systemd[2740]: Stopped SSH key agent.
Jul 16 02:53:29 DebianDesktop systemd[4610]: Started SSH key agent.
Jul 16 02:53:29 DebianDesktop ssh-agent[4628]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Jul 16 03:13:00 DebianDesktop systemd[4610]: Stopping SSH key agent...
Jul 16 03:13:00 DebianDesktop systemd[4610]: Stopped SSH key agent.
Jul 16 11:22:42 DebianDesktop systemd[5227]: Started SSH key agent.
Jul 16 11:22:42 DebianDesktop ssh-agent[5245]: SSH_AUTH_SOCK=/run/user/1000/ssh-agent.socket; export SSH_AUTH_SOCK;
Si je n'ai pas été assez clair, hésiter pas
Merci
Dernière modification par linuxpit (16-07-2022 10:38:56)