# How to get RDP and ssh connections from a Host

**URL:** <https://community.dynatrace.com/t/how-to-get-rdp-and-ssh-connections-from-a-host/22219>\
**Category:** Open Q&A\
**Tags:** hosts-classic\
**Created:** [October 8, 2019, 8:48am UTC](https://community.dynatrace.com/t/how-to-get-rdp-and-ssh-connections-from-a-host/22219 "2019-10-08T08:48:51Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajdimanuel](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@ajdimanuel](https://community.dynatrace.com/u/ajdimanuel)\
**Post date:** [October 8, 2019, 8:48am UTC](https://community.dynatrace.com/t/how-to-get-rdp-and-ssh-connections-from-a-host/22219/1 "2019-10-08T08:48:51Z")

</div>

Hi,

we have installed agents in _Identity Management_ team and they need to get and chart how many RDP Connections have Windows machines and how many SSH connections Linux machines have.

Currently, we are not able to get that information. Do you have any idea?

Thanks.

Alberto.

---

<div class="post-metadata">

**Author:** ![skrystosik](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/skrystosik/32/21133_2.png) [@skrystosik](https://community.dynatrace.com/u/skrystosik)\
**Post date:** [October 8, 2019, 12:07pm UTC](https://community.dynatrace.com/t/how-to-get-rdp-and-ssh-connections-from-a-host/22219/2 "2019-10-08T12:07:05Z")

</div>

If there is performance counter for such thing, you should be able to make simple OneAgent plugin that will collect it for you.

Sebastian

---

<div class="post-metadata">

**Author:** ![ajdimanuel](https://avatars.discourse-cdn.com/v4/letter/a/8e7dd6/32.png) [@ajdimanuel](https://community.dynatrace.com/u/ajdimanuel)\
**Post date:** [October 11, 2019, 12:29pm UTC](https://community.dynatrace.com/t/how-to-get-rdp-and-ssh-connections-from-a-host/22219/3 "2019-10-11T12:29:22Z")

</div>

Hi,

the question is , "Does Dynatrace collect OOTB these information (RDP sessions and SSH sessions) or do you have any developed plugin that already makes it?

Thanks.

Alberto.

---

<div class="post-metadata">

**Author:** ![Julius\_Loman](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/julius_loman/32/51_2.png) [@Julius\_Loman](https://community.dynatrace.com/u/Julius_Loman)\
**Post date:** [October 11, 2019, 9:23pm UTC](https://community.dynatrace.com/t/how-to-get-rdp-and-ssh-connections-from-a-host/22219/4 "2019-10-11T21:23:56Z")

</div>

[@Alberto D.](https://answers.dynatrace.com/users/4156/view.html) Dynatrace does not collect this out of the box. See my sample host plugin for collecting this metric [here](https://github.com/juliusloman/dynatrace-oneagent-plugin-hostsessioncount). It users quser on Windows and who command on Linux for determining the number of active sessions.
