akito-aruji Posted February 28, 2006 Share Posted February 28, 2006 Bonjour je vourais savoir s'il existe un programme (à la maniere de gkrellm ou encore ifstat),qui me dise qu'elles sont les clients connecté sur mon PC en ssh? Link to comment Share on other sites More sharing options...
gauret Posted February 28, 2006 Share Posted February 28, 2006 w ? Link to comment Share on other sites More sharing options...
Sandeman Posted February 28, 2006 Share Posted February 28, 2006 en version brute de fonderie : ## ps fx | grep sshd: | grep -v grep 16806 ? Ss 0:00 \_ sshd: root@pts/0 22872 ? Ss 0:00 \_ sshd: sandeman [priv] 22933 ? Ss 0:00 \_ sshd: root@pts/3 y'a peut être moyen de faire plus joli avec pgrep mais je ne vois pas comment afficher la partie après le : ensuite tu enrobe ça dans du < perl | awk > pour faire zoli le [priv] correspond à un ssh vers lui-même on dirait ... Link to comment Share on other sites More sharing options...
theocrite Posted February 28, 2006 Share Posted February 28, 2006 ## ps fx | grep sshd: | grep -v grep Plus rapide : ps fx | grep ssh[d]: Link to comment Share on other sites More sharing options...
akito-aruji Posted March 1, 2006 Author Share Posted March 1, 2006 Merci bien votre aide m'a été trés utile Link to comment Share on other sites More sharing options...
magnig Posted March 2, 2006 Share Posted March 2, 2006 Et pourquoi pas $who tout simplement? tu peux même savoir d'où la personne se connecte. gabriel pts/0 Mar 2 17:15 (ip-*****************************.fr) gabriel pts/1 Mar 2 17:21 (ip-*****************************.fr) gabriel pts/2 Mar 2 17:54 (ip-*****************************.fr) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.