"ssh_exchange_identification: Connection closed by remote host" error is received from the master while trying to test with sshpass. This is because the clients are not resolvable on the master. The code should add entries in /etc/hosts (or add dns A records) on the master.
[root@hp-bl280cg6-01 ~]# ping intel-s5000phb-01.testrelm.com ping: unknown host intel-s5000phb-01.testrelm.com [root@hp-bl280cg6-01 ~]# host intel-s5000phb-01.testrelm.com Host intel-s5000phb-01.testrelm.com not found: 3(NXDOMAIN) [root@hp-bl280cg6-01 ~]# sshpass -p Secret123 ssh -o StrictHostKeyChecking=no -l admin 10.16.65.164 "echo test" test Could not chdir to home directory /home/admin: No such file or directory [root@hp-bl280cg6-01 ~]# echo $? 0 [root@hp-bl280cg6-01 ~]# sshpass -p Secret123 ssh -o StrictHostKeyChecking=no -l admin intel-s5000phb-01.testrelm.com "echo test" ssh_exchange_identification: Connection closed by remote host
master: baf9b4c
ipa-3-3: e5caf06
Metadata Update from @steeve: - Issue assigned to tbabej - Issue set to the milestone: FreeIPA 3.3.5 (bug fixing)
Login to comment on this ticket.