# How to kill/restart ssh remote connection

**URL:** <https://forum.ansible.com/t/how-to-kill-restart-ssh-remote-connection/34709>\
**Category:** Ansible Project\
**Created:** [March 2, 2021, 11:20pm UTC](https://forum.ansible.com/t/how-to-kill-restart-ssh-remote-connection/34709 "2021-03-02T23:20:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Softestplease](https://avatars.discourse-cdn.com/v4/letter/s/96bed5/32.png) [@Softestplease](https://forum.ansible.com/u/Softestplease)\
**Post date:** [March 2, 2021, 11:20pm UTC](https://forum.ansible.com/t/how-to-kill-restart-ssh-remote-connection/34709/1 "2021-03-02T23:20:14Z")

</div>

Hi all,

Could anyone please share some knowledge on how to kill/restart ssh from remote connection in Ansible?

Basically, I need to re-login in order the changes to take affect but it seems that Ansible has shared connection for ssh.

any help much appreciated

cheers

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [March 3, 2021, 12:22am UTC](https://forum.ansible.com/t/how-to-kill-restart-ssh-remote-connection/34709/2 "2021-03-03T00:22:51Z")

</div>

- meta: reset\_connection

Though if you are not using the default control path you might find  
issues, which i'm in the middle of fixing.
