#4130 Test script should add records for hosts in the same domain as master
Closed: Fixed None Opened 5 years ago by steeve.

"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

Metadata Update from @steeve:
- Issue assigned to tbabej
- Issue set to the milestone: FreeIPA 3.3.5 (bug fixing)

2 years ago

Login to comment on this ticket.

Metadata