# Need help in adding ssh\_port dynamically

**URL:** <https://forum.ansible.com/t/need-help-in-adding-ssh-port-dynamically/34771>\
**Category:** Ansible Project\
**Created:** [March 12, 2021, 4:28pm UTC](https://forum.ansible.com/t/need-help-in-adding-ssh-port-dynamically/34771 "2021-03-12T16:28:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kumaresan\_M](https://avatars.discourse-cdn.com/v4/letter/k/e19b73/32.png) [@Kumaresan\_M](https://forum.ansible.com/u/Kumaresan_M)\
**Post date:** [March 12, 2021, 4:28pm UTC](https://forum.ansible.com/t/need-help-in-adding-ssh-port-dynamically/34771/1 "2021-03-12T16:28:16Z")

</div>

Hi All,

The dynamic inventory has been implemented with servicenow collections however few servers we are using custom ssh\_port rest all servers uses default port 22.Since it’s dynamic inventory is there way to add ssh\_port dynamically.

Regards  
Kumar
