Still not working .Please find the output of above command below from New Foreman As well old one.
####################### New Foreman #########################################
[root@xproorchestrator05 ~]# sudo -u foreman-proxy ssh root@c7build.example.com -i /var/lib/foreman-proxy/ssh/id_rsa_foreman_proxy -v -l platform
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
ssh: Could not resolve hostname c7build.example.com: Name or service not known
[root@xproorchestrator05 ~]# sudo -u foreman-proxy ssh root@xdevsl.admiral.es -i /var/lib/foreman-proxy/ssh/id_rsa_foreman_proxy -v -l platform
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug1: Connecting to xdevsl.admiral.es [10.93.0.55] port 22.
debug1: Connection established.
debug1: identity file /var/lib/foreman-proxy/ssh/id_rsa_foreman_proxy type 1
debug1: key_load_public: No such file or directory
debug1: identity file /var/lib/foreman-proxy/ssh/id_rsa_foreman_proxy-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000
debug1: Authenticating to xdevsl.admiral.es:22 as âplatformâ
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: kex: curve25519-sha256 need=64 dh_need=64
debug1: kex: curve25519-sha256 need=64 dh_need=64
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:pSxtpUT54jjoojyqDMJwWhRC/XOKjoILxqxFiBI1ca0
debug1: Host âxdevsl.admiral.esâ is known and matches the ECDSA host key.
debug1: Found key in /usr/share/foreman-proxy/.ssh/known_hosts:28
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug1: SSH2_MSG_SERVICE_ACCEPT received
( ____ |\ /|__ /( ____ ( ____
| ( /| ) ( | ) ( | ( /| ( /
| ( | | | | | | | | | (_____
| ) | | | | | | | | ____ (___ )
| ( | | | | | | | | _ ) ) |
| (/| () |) (| () |/_) |
(/()_/()_____)
-
WARNING !!! *
-
This system is for the use of authorized users only. *
-
*
-
Individuals using this network without authority, or in excess of their *
-
authority, are subject to legal action. *
-
*
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available (default cache: KEYRING:persistent:662)
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available (default cache: KEYRING:persistent:662)
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /var/lib/foreman-proxy/ssh/id_rsa_foreman_proxy
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: password
platform@xdevsl.admiral.esâs password:
###########################################################################
####################### OLD FOREMAN #####################################
[root@xproorchestrator03:~#] sudo -u foreman-proxy ssh root@xdevsl.admiral.es -i /var/lib/foreman-proxy/ssh/id_rsa_foreman_proxy -v -l platform
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug1: Connecting to xdevsl.admiral.es [10.93.0.55] port 22.
debug1: Connection established.
debug1: identity file /var/lib/foreman-proxy/ssh/id_rsa_foreman_proxy type 1
debug1: key_load_public: No such file or directory
debug1: identity file /var/lib/foreman-proxy/ssh/id_rsa_foreman_proxy-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.4
debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4
debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000
debug1: Authenticating to xdevsl.admiral.es:22 as âplatformâ
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: compression: none
debug1: kex: curve25519-sha256 need=64 dh_need=64
debug1: kex: curve25519-sha256 need=64 dh_need=64
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:pSxtpUT54jjoojyqDMJwWhRC/XOKjoILxqxFiBI1ca0
debug1: Host âxdevsl.admiral.esâ is known and matches the ECDSA host key.
debug1: Found key in /usr/share/foreman-proxy/.ssh/known_hosts:608
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug1: SSH2_MSG_SERVICE_ACCEPT received
( ____ |\ /|__ /( ____ ( ____
| ( /| ) ( | ) ( | ( /| ( /
| ( | | | | | | | | | (_____
| ) | | | | | | | | ____ (___ )
| ( | | | | | | | | _ ) ) |
| (/| () |) (| () |/_) |
(/()_/()_____)
-
WARNING !!! *
-
This system is for the use of authorized users only. *
-
*
-
Individuals using this network without authority, or in excess of their *
-
authority, are subject to legal action. *
-
*
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available (default cache: KEYRING:persistent:662)
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available (default cache: KEYRING:persistent:662)
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /var/lib/foreman-proxy/ssh/id_rsa_foreman_proxy
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: password
platform@xdevsl.admiral.esâs password:
#############################################################################