# \#ssh

**URL:** https://forum.ansible.com/tag/ssh/170.md

[Latest](https://forum.ansible.com/latest.md) · [Categories](https://forum.ansible.com/categories.md) · [Tags](https://forum.ansible.com/tags.md)

---

## [How to configure SSH access between two remote hosts](https://forum.ansible.com/t/how-to-configure-ssh-access-between-two-remote-hosts/46346)

<div class="topic-metadata">

**Author:** [@nroweccc](https://forum.ansible.com/u/nroweccc)\
**Replies:** 1\
**Last updated:** [September 23, 2026, 5:13am UTC](https://forum.ansible.com/t/how-to-configure-ssh-access-between-two-remote-hosts/46346 "2026-09-23T05:13:49Z")

</div>

I am trying to configure remote host A to be able to SSH into other remote host B. Here is my code: # On coordinator, we create an SSH key pair - name: Create SSH key pair on coordinator when: dagu\_mode == "coordinato…

---

## [Merging a list of IP addresses and ports for OpenSSH](https://forum.ansible.com/t/merging-a-list-of-ip-addresses-and-ports-for-openssh/45693)

<div class="topic-metadata">

**Author:** [@chris](https://forum.ansible.com/u/chris)\
**Replies:** 5\
**Last updated:** [April 16, 2026, 4:30pm UTC](https://forum.ansible.com/t/merging-a-list-of-ip-addresses-and-ports-for-openssh/45693 "2026-04-16T16:30:54Z")

</div>

OpenSSH server has separate configuration variables for IP addresses to listen on and ports to listen on, for example in /etc/ssh/sshd\_config: ListenAddress 192.168.1.2 ListenAddress 127.0.0.1 Port 22 Port 53 Port 443 A…

---

## [SSH private key on Ansible vs AWX using Hashicorp Vault](https://forum.ansible.com/t/ssh-private-key-on-ansible-vs-awx-using-hashicorp-vault/45669)

<div class="topic-metadata">

**Author:** [@motorbass](https://forum.ansible.com/u/motorbass)\
**Replies:** 4\
**Last updated:** [April 14, 2026, 6:52am UTC](https://forum.ansible.com/t/ssh-private-key-on-ansible-vs-awx-using-hashicorp-vault/45669 "2026-04-14T06:52:32Z")

</div>

Hi I was developping a network playbook in order to deploy and automate upgrades on a bunch of Cisco Nexus but i’m having an issue while moving my playbook to AWX. The developpement context is on my Debian 13. It uses …

---

## [ControlPersist settings not working as expected in gcp connection](https://forum.ansible.com/t/controlpersist-settings-not-working-as-expected-in-gcp-connection/44578)

<div class="topic-metadata">

**Author:** [@SaravanaSelvaraj](https://forum.ansible.com/u/SaravanaSelvaraj)\
**Replies:** 0\
**Last updated:** [September 30, 2025, 5:28am UTC](https://forum.ansible.com/t/controlpersist-settings-not-working-as-expected-in-gcp-connection/44578 "2025-09-30T05:28:09Z")

</div>

gcloud SSH succeeds in AWX, but ControlPersist/SSH multiplexing settings are not applied Dear Community, We built a custom wrapper script to connect to GCP VMs from AWX, as no native plugin supports this. SSH works, b…

---

## [Manual SSH connection works, via Ansible fails (used to work)](https://forum.ansible.com/t/manual-ssh-connection-works-via-ansible-fails-used-to-work/44476)

<div class="topic-metadata">

**Author:** [@toasttheft](https://forum.ansible.com/u/toasttheft)\
**Replies:** 6\
**Last updated:** [September 18, 2025, 7:27am UTC](https://forum.ansible.com/t/manual-ssh-connection-works-via-ansible-fails-used-to-work/44476 "2025-09-18T07:27:49Z")

</div>

I’ve been using ansible to configure a catalyst 1000 switch for the last few months. Tday I’ve attempted to --check --diff the switch config, only for ansible to return an error about the kex algorithms. This was an issu…

---

## [Fine-grained command control needed on Ansible task execution](https://forum.ansible.com/t/fine-grained-command-control-needed-on-ansible-task-execution/43982)

<div class="topic-metadata">

**Author:** [@gunjanpb](https://forum.ansible.com/u/gunjanpb)\
**Replies:** 0\
**Last updated:** [July 22, 2025, 12:28pm UTC](https://forum.ansible.com/t/fine-grained-command-control-needed-on-ansible-task-execution/43982 "2025-07-22T12:28:57Z")

</div>

Hi all, I’m looking for a way to enforce restrictions on what operations Ansible is allowed to execute on target nodes, and prevent certain potentially dangerous or unauthorized operations ( shell commands or other Pyth…

---

## [ansible with win11 + ssh - failed to create temporary directory](https://forum.ansible.com/t/ansible-with-win11-ssh-failed-to-create-temporary-directory/43795)

<div class="topic-metadata">

**Author:** [@ans00b](https://forum.ansible.com/u/ans00b)\
**Replies:** 3\
**Last updated:** [July 15, 2025, 5:31am UTC](https://forum.ansible.com/t/ansible-with-win11-ssh-failed-to-create-temporary-directory/43795 "2025-07-15T05:31:34Z")

</div>

Hi, using ansible control node on debian 12. ~/ansible/hosts \[windows\] win11 ansible\_host=192.168.20.100 ansible\_ssh\_user=username ansible\_ssh\_password=password ansible all -i hosts -m win\_ping win11 | UNREACHABLE! …

---

## [Does Ansible always run .ssh/rc?](https://forum.ansible.com/t/does-ansible-always-run-ssh-rc/43537)

<div class="topic-metadata">

**Author:** [@Dylan\_Martin3](https://forum.ansible.com/u/Dylan_Martin3)\
**Replies:** 1\
**Last updated:** [June 25, 2025, 3:07am UTC](https://forum.ansible.com/t/does-ansible-always-run-ssh-rc/43537 "2025-06-25T03:07:33Z")

</div>

Hi all! I want to run all my Ansible processes with a lowered process priority, so I cause as little disruption as possible during ansible runs. I’ve figured out how to do this by running renice -n 10 -p $$ in .ssh/rc. …

---

## [Override ControlPersist per host?](https://forum.ansible.com/t/override-controlpersist-per-host/42335)

<div class="topic-metadata">

**Author:** [@devilkin](https://forum.ansible.com/u/devilkin)\
**Replies:** 3\
**Last updated:** [May 1, 2025, 11:37pm UTC](https://forum.ansible.com/t/override-controlpersist-per-host/42335 "2025-05-01T23:37:36Z")

</div>

Hi, I’m currently using sshpiper (GitHub - tg123/sshpiper: The missing reverse proxy for ssh scp) to reverse proxy SSH into different target machines. The reason for this is that I can easily create a user/key combo in …

---

## [Win\_ping issue "Could not find the shell plugin required"](https://forum.ansible.com/t/win-ping-issue-could-not-find-the-shell-plugin-required/42293)

<div class="topic-metadata">

**Author:** [@Rokas101](https://forum.ansible.com/u/Rokas101)\
**Replies:** 2\
**Last updated:** [May 1, 2025, 3:11pm UTC](https://forum.ansible.com/t/win-ping-issue-could-not-find-the-shell-plugin-required/42293 "2025-05-01T15:11:01Z")

</div>

I’m running WSL2 Ubuntu 24.04.2 LTS as Ansible host and a Windows 11 VM on Hyper-V as a remote node with SSH enabled. The VM is reachable from the host with ping and SSH, however when I run: ansible myhosts -m win\_ping…

---

## [AWX to GCP VM : Establish and Maintain IAP Tunnel for Subsequent Playbook Execution](https://forum.ansible.com/t/awx-to-gcp-vm-establish-and-maintain-iap-tunnel-for-subsequent-playbook-execution/42035)

<div class="topic-metadata">

**Author:** [@SaravanaSelvaraj](https://forum.ansible.com/u/SaravanaSelvaraj)\
**Replies:** 6\
**Last updated:** [April 28, 2025, 2:06pm UTC](https://forum.ansible.com/t/awx-to-gcp-vm-establish-and-maintain-iap-tunnel-for-subsequent-playbook-execution/42035 "2025-04-28T14:06:06Z")

</div>

AWX to GCP SSH connectivity is getting closed for subsequent playbook Execution. Dear community, My project --- - name: Establish GCP connectivity using impersonated SA hosts: all gather\_facts: false any\_errors\_…

---

## [Dynamically give Ansible a private key from an Infisical vault/Terraform](https://forum.ansible.com/t/dynamically-give-ansible-a-private-key-from-an-infisical-vault-terraform/40682)

<div class="topic-metadata">

**Author:** [@abaars98](https://forum.ansible.com/u/abaars98)\
**Replies:** 5\
**Last updated:** [February 28, 2025, 3:14pm UTC](https://forum.ansible.com/t/dynamically-give-ansible-a-private-key-from-an-infisical-vault-terraform/40682 "2025-02-28T15:14:16Z")

</div>

Hi everyone, I am learning to use Ansible but I am running into a bit of a wall with regards to authentication. It could be that I am going about it all wrong in the first place or that I am somehow missing something re…

---

## [SSH Pass Authentication Error: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).", "unreachable": true](https://forum.ansible.com/t/ssh-pass-authentication-error-permission-denied-publickey-gssapi-keyex-gssapi-with-mic-password-unreachable-true/40116)

<div class="topic-metadata">

**Author:** [@Courtney\_Poles](https://forum.ansible.com/u/Courtney_Poles)\
**Replies:** 1\
**Last updated:** [February 7, 2025, 10:57am UTC](https://forum.ansible.com/t/ssh-pass-authentication-error-permission-denied-publickey-gssapi-keyex-gssapi-with-mic-password-unreachable-true/40116 "2025-02-07T10:57:51Z")

</div>

I am trying to use SSH pass to authenticate and then run a playbook via GitHub Actions (GHA) and am encountering the following error: encountered an authentication error fatal: \[airflowdev\]: UNREACHABLE! =\> {"changed": …

---

## [Sudo (become) fails on Debian target, not on Fedora (using agent-based authentication)](https://forum.ansible.com/t/sudo-become-fails-on-debian-target-not-on-fedora-using-agent-based-authentication/39533)

<div class="topic-metadata">

**Author:** [@aswen](https://forum.ansible.com/u/aswen)\
**Replies:** 3\
**Last updated:** [January 9, 2025, 10:51pm UTC](https://forum.ansible.com/t/sudo-become-fails-on-debian-target-not-on-fedora-using-agent-based-authentication/39533 "2025-01-09T22:51:36Z")

</div>

I try to use Ansible to configure both Debian and Fedora machines. On the Debian machines sudo fails (Incorrect sudo password), on Fedora it works. tl;dr: Please help me understand how I should configure Ansible (or De…

---

## [Ansible cannot reach host but ansible ping and ssh is ok](https://forum.ansible.com/t/ansible-cannot-reach-host-but-ansible-ping-and-ssh-is-ok/10785)

<div class="topic-metadata">

**Author:** [@adriansev](https://forum.ansible.com/u/adriansev)\
**Replies:** 6\
**Last updated:** [January 9, 2025, 9:00pm UTC](https://forum.ansible.com/t/ansible-cannot-reach-host-but-ansible-ping-and-ssh-is-ok/10785 "2025-01-09T21:00:11Z")

</div>

I have a very strange situation where a host that responds to ansible ping and i can ssh into gives Data could not be sent to remote host Any idea how can i debug this and most importantly how can this happen? i have t…

---

## [How to handle upgrading of High Availability pair instances](https://forum.ansible.com/t/how-to-handle-upgrading-of-high-availability-pair-instances/3470)

<div class="topic-metadata">

**Author:** [@rohit-myali](https://forum.ansible.com/u/rohit-myali)\
**Replies:** 1\
**Last updated:** [December 30, 2024, 5:55am UTC](https://forum.ansible.com/t/how-to-handle-upgrading-of-high-availability-pair-instances/3470 "2024-12-30T05:55:17Z")

</div>

I’m writing ansible-playbook to upgrade NetScaler High Availability pair. Basically, there are two instances primary and secondary. The process to upgrade manually is: First we upgrade the secondary instance and than…

---

## [Send y key via Ansible](https://forum.ansible.com/t/send-y-key-via-ansible/11036)

<div class="topic-metadata">

**Author:** [@philly](https://forum.ansible.com/u/philly)\
**Replies:** 1\
**Last updated:** [November 21, 2024, 9:11am UTC](https://forum.ansible.com/t/send-y-key-via-ansible/11036 "2024-11-21T09:11:50Z")

</div>

Hi, i want to add this command to my Ansible Playbook reload from working rollback-timeout 20 The Output should be like this: -\> reload from working rollback-timeout 20 Confirm Activate (Y/N) : But in Ansible i rece…

---

## [Semaphore-UI w/ Ansible in Docker](https://forum.ansible.com/t/semaphore-ui-w-ansible-in-docker/6648)

<div class="topic-metadata">

**Author:** [@cmennens](https://forum.ansible.com/u/cmennens)\
**Replies:** 2\
**Last updated:** [November 9, 2024, 6:59am UTC](https://forum.ansible.com/t/semaphore-ui-w-ansible-in-docker/6648 "2024-11-09T06:59:24Z")

</div>

I recently deployed Ansible at work for our Infrastructure team along side with Semaphore UI. It’s been fantastic however we recently wanted to move the Ansible platform to a Docker container setup. We deployed the semap…

---

## [Issue on executing playbook using async options](https://forum.ansible.com/t/issue-on-executing-playbook-using-async-options/10582)

<div class="topic-metadata">

**Author:** [@ricardobarbosams](https://forum.ansible.com/u/ricardobarbosams)\
**Replies:** 2\
**Last updated:** [November 5, 2024, 9:05pm UTC](https://forum.ansible.com/t/issue-on-executing-playbook-using-async-options/10582 "2024-11-05T21:05:43Z")

</div>

Hi everyone, I have a problem executing the following playbook - hosts: - server01 gather\_facts: no tasks: - name: task01 command: bash /opt/script01.sh async: 86400 # 24 hours poll: 60 # check…

---

## [Changing non-ansible user password on remote server](https://forum.ansible.com/t/changing-non-ansible-user-password-on-remote-server/10510)

<div class="topic-metadata">

**Author:** [@stipemd](https://forum.ansible.com/u/stipemd)\
**Replies:** 5\
**Last updated:** [October 29, 2024, 5:27pm UTC](https://forum.ansible.com/t/changing-non-ansible-user-password-on-remote-server/10510 "2024-10-29T17:27:55Z")

</div>

There exists a service account srvAdmin on other Linux hosts which I need to log in as that account and change its password. I can’t set up an ansible service account on all those other hosts since they don’t belong to m…

---

## [Issue deploying playbook through GCP IAP behind a bastion host using ssh config and ProxyCommand](https://forum.ansible.com/t/issue-deploying-playbook-through-gcp-iap-behind-a-bastion-host-using-ssh-config-and-proxycommand/10402)

<div class="topic-metadata">

**Author:** [@philippegoarthurai](https://forum.ansible.com/u/philippegoarthurai)\
**Replies:** 5\
**Last updated:** [October 28, 2024, 9:44pm UTC](https://forum.ansible.com/t/issue-deploying-playbook-through-gcp-iap-behind-a-bastion-host-using-ssh-config-and-proxycommand/10402 "2024-10-28T21:44:38Z")

</div>

TL;DR We have an ssh configuration issue that prevents us from deploying using ansible-playbook through GCP Identity Aware Proxy to an internal host behind a bastion host. We have requested help from GCP but we are reach…

---

## [Ansible to Windows with SSH, become not working](https://forum.ansible.com/t/ansible-to-windows-with-ssh-become-not-working/7574)

<div class="topic-metadata">

**Author:** [@tonk](https://forum.ansible.com/u/tonk)\
**Replies:** 2\
**Last updated:** [August 2, 2024, 7:16am UTC](https://forum.ansible.com/t/ansible-to-windows-with-ssh-become-not-working/7574 "2024-08-02T07:16:50Z")

</div>

Hello all, I am trying to get this to work, with Ansible: Login to a Windows server with SSH (this works) Do all kind of Windows things there (that works) But the above only works when I login as the Administrator us…

---

## [Netcommon.cli\_command using ssh keys](https://forum.ansible.com/t/netcommon-cli-command-using-ssh-keys/7350)

<div class="topic-metadata">

**Author:** [@bgoulet00](https://forum.ansible.com/u/bgoulet00)\
**Replies:** 3\
**Last updated:** [July 30, 2024, 7:58pm UTC](https://forum.ansible.com/t/netcommon-cli-command-using-ssh-keys/7350 "2024-07-30T19:58:48Z")

</div>

i know the username and private key are good as i use them to connect to the same target in a terminal emulator. i am not able to get this working with ansible though. here are the vars from my host file vars: ans…

---

## [Ansible can't connect to IOS switches using ssh (previously working)](https://forum.ansible.com/t/ansible-cant-connect-to-ios-switches-using-ssh-previously-working/7515)

<div class="topic-metadata">

**Author:** [@Jonathan](https://forum.ansible.com/u/Jonathan)\
**Replies:** 2\
**Last updated:** [July 28, 2024, 4:57pm UTC](https://forum.ansible.com/t/ansible-cant-connect-to-ios-switches-using-ssh-previously-working/7515 "2024-07-28T16:57:01Z")

</div>

Hey all, I got a bit of a head scratcher. Long story short, I had to redeploy my Ubuntu VM bcuz hyper-v sucks. Anyways, I was hoping the only thing I would have difficulty with was re-creating my hosts.ini file and my…

---

## [Ansible & AWS ec2-instance-connect - cannot SSH](https://forum.ansible.com/t/ansible-aws-ec2-instance-connect-cannot-ssh/4998)

<div class="topic-metadata">

**Author:** [@jrglynn2](https://forum.ansible.com/u/jrglynn2)\
**Replies:** 1\
**Last updated:** [July 25, 2024, 9:04pm UTC](https://forum.ansible.com/t/ansible-aws-ec2-instance-connect-cannot-ssh/4998 "2024-07-25T21:04:32Z")

</div>

Hello, has anyone ever used AWS ec2-instance-connect with Ansible to connect to servers, using a ProxyCommand in ansible\_ssh\_common\_args ? I cannot get Ansible to SSH to the server. When I run the straight aws command fr…

---

## [Add a username in the sshd config file,](https://forum.ansible.com/t/add-a-username-in-the-sshd-config-file/4928)

<div class="topic-metadata">

**Author:** [@unwissende](https://forum.ansible.com/u/unwissende)\
**Replies:** 1\
**Last updated:** [April 12, 2024, 1:13pm UTC](https://forum.ansible.com/t/add-a-username-in-the-sshd-config-file/4928 "2024-04-12T13:13:59Z")

</div>

Hello everyone, i have a question. I’m trying to create a new user for all of my virtual servers. The creating works fine, only issue i have is the sshd config file. In this file we have one Line “AllowedUsers: User1 Us…

---

## [Ansible Lab Setup](https://forum.ansible.com/t/ansible-lab-setup/4819)

<div class="topic-metadata">

**Author:** [@anon99813807](https://forum.ansible.com/u/anon99813807)\
**Replies:** 6\
**Last updated:** [April 8, 2024, 9:06pm UTC](https://forum.ansible.com/t/ansible-lab-setup/4819 "2024-04-08T21:06:30Z")

</div>

Hello I am trying to setup a home lab to support an Ansible course I am taking on Udemy. I am following the procedures from the instructor, who seems to not support his course anymore via Q&A. I am struggling with the s…

---

## [Can't connect to Cisco router using network\_cli but ssh from raw module works fine](https://forum.ansible.com/t/cant-connect-to-cisco-router-using-network-cli-but-ssh-from-raw-module-works-fine/4281)

<div class="topic-metadata">

**Author:** [@jneiberger](https://forum.ansible.com/u/jneiberger)\
**Replies:** 5\
**Last updated:** [March 11, 2024, 11:49pm UTC](https://forum.ansible.com/t/cant-connect-to-cisco-router-using-network-cli-but-ssh-from-raw-module-works-fine/4281 "2024-03-11T23:49:11Z")

</div>

% ansible --version ansible \[core 2.16.4\] config file = /Users/john/scripts/ansible-testing/ansible.cfg configured module search path = \['/Users/john/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules'\] …

---

## [Semaphore fails ansible-playbook succeeds](https://forum.ansible.com/t/semaphore-fails-ansible-playbook-succeeds/4089)

<div class="topic-metadata">

**Author:** [@tubbs](https://forum.ansible.com/u/tubbs)\
**Replies:** 6\
**Last updated:** [February 29, 2024, 8:55am UTC](https://forum.ansible.com/t/semaphore-fails-ansible-playbook-succeeds/4089 "2024-02-29T08:55:09Z")

</div>

When I run my playbook ansible connects properly to the remote machine and executes all commands just fine. When I run the same playbook from the semaphore UI I get → ssh connection error. It’s obviously an ssh error…

---

## [Ansible SSH connection plugin not working](https://forum.ansible.com/t/ansible-ssh-connection-plugin-not-working/3404)

<div class="topic-metadata">

**Author:** [@sumanth-lingappa](https://forum.ansible.com/u/sumanth-lingappa)\
**Replies:** 10\
**Last updated:** [January 24, 2024, 9:23am UTC](https://forum.ansible.com/t/ansible-ssh-connection-plugin-not-working/3404 "2024-01-24T09:23:09Z")

</div>

I am the maintainer of citrix.adc ansible collection and we have a ssh\_connection\_plugin for the citrix.adc ansible collection. When I run ansible-playbook using this connection plugin, I am facing some unknown error wh…

[Next page](https://forum.ansible.com/tag/ssh/170.md?match_all_tags=true&page=1&tags%5B%5D=ssh)
