Remote action failed

It’s weir, when i perform an ssh, i do not have any errors:

Log from foreman:

$ sudo -u foreman-proxy ssh -vvv -l admin test-vm -i ~foreman-proxy/.ssh/id_rsa_foreman_proxy
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 *
debug2: resolving “test-vm” port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to test-vm [test-vm] port 22.
debug1: Connection established.
debug1: identity file /usr/share/foreman-proxy/.ssh/id_rsa_foreman_proxy type 1
debug1: key_load_public: No such file or directory
debug1: identity file /usr/share/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
debug2: fd 3 setting O_NONBLOCK
debug1: Authenticating to test-vm:22 as ‘admin’
debug3: hostkeys_foreach: reading file “/usr/share/foreman-proxy/.ssh/known_hosts”
debug3: record_hostkey: found key type ECDSA in file /usr/share/foreman-proxy/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from test-vm
debug3: order_hostkeyalgs: prefer hostkeyalgs: ecdsa-sha2-nistp256-cert-v01@openssh. com,ecdsa-sha2-nistp384-cert-v01@openssh. com,ecdsa-sha2-nistp521-cert-v01@openssh. com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521
debug3: send packet: type 20
debug1: SSH2_MSG_KEXINIT sent
debug3: receive packet: type 20
debug1: SSH2_MSG_KEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh. org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,ext-info-c
debug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh. com,ecdsa-sha2-nistp384-cert-v01@openssh. com,ecdsa-sha2-nistp521-cert-v01@openssh. com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh. com,ssh-rsa-cert-v01@openssh. com,ssh-dss-cert-v01@openssh. com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss
debug2: ciphers ctos: chacha20-poly1305@openssh. com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh. com,aes256-gcm@openssh. com,aes128-cbc,aes192-cbc,aes256-cbc
debug2: ciphers stoc: chacha20-poly1305@openssh. com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh. com,aes256-gcm@openssh. com,aes128-cbc,aes192-cbc,aes256-cbc
debug2: MACs ctos: umac-64-etm@openssh. com,umac-128-etm@openssh. com,hmac-sha2-256-etm@openssh. com,hmac-sha2-512-etm@openssh. com,hmac-sha1-etm@openssh. com,umac-64@openssh. com,umac-128@openssh. com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: umac-64-etm@openssh. com,umac-128-etm@openssh. com,hmac-sha2-256-etm@openssh. com,hmac-sha2-512-etm@openssh. com,hmac-sha1-etm@openssh. com,umac-64@openssh. com,umac-128@openssh. com,hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,zlib@openssh. com,zlib
debug2: compression stoc: none,zlib@openssh. com,zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh. org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519
debug2: ciphers ctos: aes256-ctr,aes192-ctr,aes128-ctr
debug2: ciphers stoc: aes256-ctr,aes192-ctr,aes128-ctr
debug2: MACs ctos: hmac-sha2-512-etm@openssh. com,hmac-sha2-256-etm@openssh. com
debug2: MACs stoc: hmac-sha2-512-etm@openssh. com,hmac-sha2-256-etm@openssh. com
debug2: compression ctos: none,zlib@openssh. com
debug2: compression stoc: none,zlib@openssh. com
debug2: languages ctos:
debug2: languages stoc:
debug2: first_kex_follows 0
debug2: reserved 0
debug1: kex: algorithm: curve25519-sha256
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256-etm@openssh. com compression: none
debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256-etm@openssh. com compression: none
debug1: kex: curve25519-sha256 need=32 dh_need=32
debug1: kex: curve25519-sha256 need=32 dh_need=32
debug3: send packet: type 30
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug3: receive packet: type 31
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:tWTZeUdStUracwJTb/81CppYMrhJrVxdsuuXGmY4n4I
debug3: hostkeys_foreach: reading file “/usr/share/foreman-proxy/.ssh/known_hosts”
debug3: record_hostkey: found key type ECDSA in file /usr/share/foreman-proxy/.ssh/known_hosts:1
debug3: load_hostkeys: loaded 1 keys from test-vm
debug1: Host ‘test-vm’ is known and matches the ECDSA host key.
debug1: Found key in /usr/share/foreman-proxy/.ssh/known_hosts:1
debug3: send packet: type 21
debug2: set_newkeys: mode 1
debug1: rekey after 4294967296 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug3: receive packet: type 21
debug1: SSH2_MSG_NEWKEYS received
debug2: set_newkeys: mode 0
debug1: rekey after 4294967296 blocks
debug2: key: /usr/share/foreman-proxy/.ssh/id_rsa_foreman_proxy (0x560079331610), explicit
debug3: send packet: type 5
debug3: receive packet: type 7
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<rsa-sha2-256,rsa-sha2-512>
debug3: receive packet: type 6
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug3: start over, passed a different list publickey,gssapi-keyex,gssapi-with-mic,password
debug3: preferred gssapi-keyex,gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_lookup gssapi-keyex
debug3: remaining preferred: gssapi-with-mic,publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-keyex
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug2: we did not send a packet, disable method
debug3: authmethod_lookup gssapi-with-mic
debug3: remaining preferred: publickey,keyboard-interactive,password
debug3: authmethod_is_enabled gssapi-with-mic
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:992)

debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available (default cache: KEYRING:persistent:992)

debug2: we did not send a packet, disable method
debug3: authmethod_lookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethod_is_enabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /usr/share/foreman-proxy/.ssh/id_rsa_foreman_proxy
debug3: send_pubkey_test
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 60
debug1: Server accepts key: pkalg rsa-sha2-512 blen 279
debug2: input_userauth_pk_ok: fp SHA256:OfMUAtRYCW0hs0C+SdIFNdGV6EUbjo60HDYISIno6xk
debug3: sign_and_send_pubkey: RSA SHA256:OfMUAtRYCW0hs0C+SdIFNdGV6EUbjo60HDYISIno6xk
debug3: send packet: type 50
debug3: receive packet: type 52
debug1: Authentication succeeded (publickey).
Authenticated to test-vm ([test-vm]:22).
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting no-more-sessions@openssh. com
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: receive packet: type 80
debug1: client_input_global_request: rtype hostkeys-00@openssh. com want_reply 0
debug3: receive packet: type 91
debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x10
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug3: send packet: type 98
debug1: Sending environment.
debug3: Ignored env HOSTNAME
debug3: Ignored env TERM
debug3: Ignored env HISTSIZE
debug3: Ignored env LS_COLORS
debug3: Ignored env MAIL
debug1: Sending env LC_CTYPE = fr_FR.utf8
debug2: channel 0: request env confirm 0
debug3: send packet: type 98
debug3: Ignored env PATH
debug3: Ignored env LOGNAME
debug3: Ignored env USER
debug3: Ignored env USERNAME
debug3: Ignored env HOME
debug3: Ignored env SHELL
debug3: Ignored env SUDO_COMMAND
debug3: Ignored env SUDO_USER
debug3: Ignored env SUDO_UID
debug3: Ignored env SUDO_GID
debug3: Ignored env XDG_SESSION_ID
debug3: Ignored env XDG_RUNTIME_DIR
debug2: channel 0: request shell confirm 1
debug3: send packet: type 98
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 2097152
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: shell request accepted on channel 0
Last login: Tue Jun 22 16:38:56 2021 from xxx.xxx.xxx.xxx
[admin@test-vm ~]$ exitdebug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
debug3: receive packet: type 98
debug1: client_input_channel_req: channel 0 rtype eow@openssh. com reply 0
debug2: channel 0: rcvd eow
debug2: channel 0: close_read
debug2: channel 0: input open -> closed

déconnexion
debug3: receive packet: type 96
debug2: channel 0: rcvd eof
debug2: channel 0: output open -> drain
debug2: channel 0: obuf empty
debug2: channel 0: close_write
debug2: channel 0: output drain -> closed
debug3: receive packet: type 97
debug2: channel 0: rcvd close
debug3: channel 0: will not send data after close
debug2: channel 0: almost dead
debug2: channel 0: gc: notify user
debug2: channel 0: gc: user detached
debug2: channel 0: send close
debug3: send packet: type 97
debug2: channel 0: is dead
debug2: channel 0: garbage collecting
debug1: channel 0: free: client-session, nchannels 1
debug3: channel 0: status: The following connections are open:
#0 client-session (t4 r0 i3/0 o3/0 fd -1/-1 cc -1)

debug3: send packet: type 1
Connection to test-vm closed.
Transferred: sent 3320, received 2436 bytes, in 7.3 seconds
Bytes per second: sent 451.9, received 331.6
debug1: Exit status 0


Log from target:

Jun 22 16:41:44 test-vm sshd[2965]: debug1: Forked child 32332.
Jun 22 16:41:44 test-vm sshd[32332]: debug1: Set /proc/self/oom_score_adj to 0
Jun 22 16:41:44 test-vm sshd[32332]: debug1: rexec start in 5 out 5 newsock 5 pipe 7 sock 8
Jun 22 16:41:44 test-vm sshd[32332]: debug1: inetd sockets after dupping: 3, 3
Jun 22 16:41:44 test-vm sshd[32332]: Connection from foreman port 40530 on test-vm port 22
Jun 22 16:41:44 test-vm sshd[32332]: debug1: Client protocol version 2.0; client software version OpenSSH_7.4
Jun 22 16:41:44 test-vm sshd[32332]: debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000
Jun 22 16:41:44 test-vm sshd[32332]: debug1: Local version string SSH-2.0-OpenSSH_7.4
Jun 22 16:41:44 test-vm sshd[32332]: debug1: Enabling compatibility mode for protocol 2.0
Jun 22 16:41:44 test-vm sshd[32332]: debug2: fd 3 setting O_NONBLOCK
Jun 22 16:41:44 test-vm sshd[32332]: debug2: Network child is on pid 32333
Jun 22 16:41:44 test-vm sshd[32332]: debug1: SELinux support disabled [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: permanently_set_uid: 74/74 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: list_hostkey_types: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: SSH2_MSG_KEXINIT sent [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: SSH2_MSG_KEXINIT received [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: local server KEXINIT proposal [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh. org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: host key algorithms: ssh-rsa,rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: ciphers ctos: aes256-ctr,aes192-ctr,aes128-ctr [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: ciphers stoc: aes256-ctr,aes192-ctr,aes128-ctr [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: MACs ctos: hmac-sha2-512-etm@openssh. com,hmac-sha2-256-etm@openssh. com [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: MACs stoc: hmac-sha2-512-etm@openssh. com,hmac-sha2-256-etm@openssh. com [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: compression ctos: none,zlib@openssh. com [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: compression stoc: none,zlib@openssh. com [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: languages ctos: [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: languages stoc: [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: first_kex_follows 0 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: reserved 0 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: peer client KEXINIT proposal [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: KEX algorithms: curve25519-sha256,curve25519-sha256@libssh. org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1,ext-info-c [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: host key algorithms: ecdsa-sha2-nistp256-cert-v01@openssh. com,ecdsa-sha2-nistp384-cert-v01@openssh. com,ecdsa-sha2-nistp521-cert-v01@openssh. com,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,ssh-ed25519-cert-v01@openssh. com,ssh-rsa-cert-v01@openssh. com,ssh-dss-cert-v01@openssh. com,ssh-ed25519,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: ciphers ctos: chacha20-poly1305@openssh. com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh. com,aes256-gcm@openssh. com,aes128-cbc,aes192-cbc,aes256-cbc [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: ciphers stoc: chacha20-poly1305@openssh. com,aes128-ctr,aes192-ctr,aes256-ctr,aes128-gcm@openssh. com,aes256-gcm@openssh. com,aes128-cbc,aes192-cbc,aes256-cbc [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: MACs ctos: umac-64-etm@openssh. com,umac-128-etm@openssh. com,hmac-sha2-256-etm@openssh. com,hmac-sha2-512-etm@openssh. com,hmac-sha1-etm@openssh. com,umac-64@openssh. com,umac-128@openssh. com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: MACs stoc: umac-64-etm@openssh. com,umac-128-etm@openssh. com,hmac-sha2-256-etm@openssh. com,hmac-sha2-512-etm@openssh. com,hmac-sha1-etm@openssh. com,umac-64@openssh. com,umac-128@openssh. com,hmac-sha2-256,hmac-sha2-512,hmac-sha1 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: compression ctos: none,zlib@openssh. com,zlib [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: compression stoc: none,zlib@openssh. com,zlib [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: languages ctos: [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: languages stoc: [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: first_kex_follows 0 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: reserved 0 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: kex: algorithm: curve25519-sha256 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: kex: host key algorithm: ecdsa-sha2-nistp256 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256-etm@openssh. com compression: none [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256-etm@openssh. com compression: none [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: kex: curve25519-sha256 need=32 dh_need=32 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: kex: curve25519-sha256 need=32 dh_need=32 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: expecting SSH2_MSG_KEX_ECDH_INIT [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: monitor_read: 6 used once, disabling now
Jun 22 16:41:44 test-vm sshd[32332]: debug2: set_newkeys: mode 1 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: rekey after 4294967296 blocks [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: SSH2_MSG_NEWKEYS sent [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: expecting SSH2_MSG_NEWKEYS [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: SSH2_MSG_NEWKEYS received [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug2: set_newkeys: mode 0 [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: rekey after 4294967296 blocks [preauth]
Jun 22 16:41:44 test-vm sshd[32332]: debug1: KEX done [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: debug1: userauth-request for user admin service ssh-connection method none [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: debug1: attempt 0 failures 0 [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: debug2: parse_server_config: config reprocess config len 1085
Jun 22 16:41:45 test-vm sshd[32332]: debug2: monitor_read: 8 used once, disabling now
Jun 22 16:41:45 test-vm sshd[32332]: debug2: input_userauth_request: setting up authctxt for admin [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: debug1: PAM: initializing for “admin”
Jun 22 16:41:45 test-vm sshd[32332]: debug1: PAM: setting PAM_RHOST to “foreman.domain”
Jun 22 16:41:45 test-vm sshd[32332]: debug1: PAM: setting PAM_TTY to “ssh”
Jun 22 16:41:45 test-vm sshd[32332]: debug2: monitor_read: 100 used once, disabling now
Jun 22 16:41:45 test-vm sshd[32332]: debug2: monitor_read: 4 used once, disabling now
Jun 22 16:41:45 test-vm sshd[32332]: debug2: monitor_read: 80 used once, disabling now
Jun 22 16:41:45 test-vm sshd[32332]: debug2: monitor_read: 10 used once, disabling now
Jun 22 16:41:45 test-vm sshd[32332]: debug2: input_userauth_request: try method none [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: debug1: userauth-request for user admin service ssh-connection method publickey [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: debug1: attempt 1 failures 0 [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: debug2: input_userauth_request: try method publickey [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: debug1: userauth_pubkey: test whether pkalg/pkblob are acceptable for RSA SHA256:OfMUAtRYCW0hs0C+SdIFNdGV6EUbjo60HDYISIno6xk [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: debug1: temporarily_use_uid: 1000/1000 (e=0/0)
Jun 22 16:41:45 test-vm sshd[32332]: debug1: trying public key file /home/admin/.ssh/authorized_keys
Jun 22 16:41:45 test-vm sshd[32332]: debug1: fd 4 clearing O_NONBLOCK
Jun 22 16:41:45 test-vm sshd[32332]: debug1: matching key found: file /home/admin/.ssh/authorized_keys, line 1 RSA SHA256:OfMUAtRYCW0hs0C+SdIFNdGV6EUbjo60HDYISIno6xk
Jun 22 16:41:45 test-vm sshd[32332]: debug1: restore_uid: 0/0
Jun 22 16:41:45 test-vm sshd[32332]: debug2: userauth_pubkey: authenticated 0 pkalg rsa-sha2-512 [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: Postponed publickey for admin from foreman port 40530 ssh2 [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: debug1: userauth-request for user admin service ssh-connection method publickey [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: debug1: attempt 2 failures 0 [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: debug2: input_userauth_request: try method publickey [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: debug1: temporarily_use_uid: 1000/1000 (e=0/0)
Jun 22 16:41:45 test-vm sshd[32332]: debug1: trying public key file /home/admin/.ssh/authorized_keys
Jun 22 16:41:45 test-vm sshd[32332]: debug1: fd 4 clearing O_NONBLOCK
Jun 22 16:41:45 test-vm sshd[32332]: debug1: matching key found: file /home/admin/.ssh/authorized_keys, line 1 RSA SHA256:OfMUAtRYCW0hs0C+SdIFNdGV6EUbjo60HDYISIno6xk
Jun 22 16:41:45 test-vm sshd[32332]: debug1: restore_uid: 0/0
Jun 22 16:41:45 test-vm sshd[32332]: debug1: do_pam_account: called
Jun 22 16:41:45 test-vm sshd[32332]: Accepted publickey for admin from foreman port 40530 ssh2: RSA SHA256:OfMUAtRYCW0hs0C+SdIFNdGV6EUbjo60HDYISIno6xk
Jun 22 16:41:45 test-vm sshd[32332]: debug1: monitor_child_preauth: admin has been authenticated by privileged process
Jun 22 16:41:45 test-vm sshd[32332]: debug2: userauth_pubkey: authenticated 1 pkalg rsa-sha2-512 [preauth]
Jun 22 16:41:45 test-vm sshd[32332]: debug1: monitor_read_log: child log fd closed
Jun 22 16:41:45 test-vm sshd[32332]: debug1: temporarily_use_uid: 1000/1000 (e=0/0)
Jun 22 16:41:45 test-vm sshd[32332]: debug1: ssh_gssapi_storecreds: Not a GSSAPI mechanism
Jun 22 16:41:45 test-vm sshd[32332]: debug1: restore_uid: 0/0
Jun 22 16:41:45 test-vm sshd[32332]: debug1: SELinux support disabled
Jun 22 16:41:45 test-vm sshd[32332]: debug1: PAM: establishing credentials
Jun 22 16:41:45 test-vm sshd[32332]: pam_unix(sshd:session): session opened for user admin by (uid=0)
Jun 22 16:41:45 test-vm sshd[32332]: User child is on pid 32334
Jun 22 16:41:45 test-vm sshd[32265]: debug1: server_input_channel_req: channel 0 request winadj@putty.projects.tartarus. org reply 1
Jun 22 16:41:45 test-vm sshd[32265]: debug1: session_by_channel: session 0 channel 0
Jun 22 16:41:45 test-vm sshd[32265]: debug1: session_input_channel_req: session 0 req winadj@putty.projects.tartarus. org
Jun 22 16:41:45 test-vm sshd[32265]: debug2: channel 0: rcvd adjust 33080
Jun 22 16:41:45 test-vm sshd[32334]: debug1: PAM: establishing credentials
Jun 22 16:41:45 test-vm sshd[32334]: debug1: permanently_set_uid: 1000/1000
Jun 22 16:41:45 test-vm sshd[32334]: debug2: set_newkeys: mode 0
Jun 22 16:41:45 test-vm sshd[32334]: debug1: rekey after 4294967296 blocks
Jun 22 16:41:45 test-vm sshd[32334]: debug2: set_newkeys: mode 1
Jun 22 16:41:45 test-vm sshd[32334]: debug1: rekey after 4294967296 blocks
Jun 22 16:41:45 test-vm sshd[32334]: debug1: ssh_packet_set_postauth: called
Jun 22 16:41:45 test-vm sshd[32334]: debug1: Entering interactive session for SSH2.
Jun 22 16:41:45 test-vm sshd[32334]: debug2: fd 4 setting O_NONBLOCK
Jun 22 16:41:45 test-vm sshd[32334]: debug2: fd 7 setting O_NONBLOCK
Jun 22 16:41:45 test-vm sshd[32334]: debug1: server_init_dispatch
Jun 22 16:41:45 test-vm sshd[32334]: debug1: server_input_channel_open: ctype session rchan 0 win 1048576 max 16384
Jun 22 16:41:45 test-vm sshd[32334]: debug1: input_session_request
Jun 22 16:41:45 test-vm sshd[32334]: debug1: channel 0: new [server-session]
Jun 22 16:41:45 test-vm sshd[32334]: debug2: session_new: allocate (allocated 0 max 10)
Jun 22 16:41:45 test-vm sshd[32334]: debug1: session_new: session 0
Jun 22 16:41:45 test-vm sshd[32334]: debug1: session_open: channel 0
Jun 22 16:41:45 test-vm sshd[32334]: debug1: session_open: session 0: link with channel 0
Jun 22 16:41:45 test-vm sshd[32334]: debug1: server_input_channel_open: confirm session
Jun 22 16:41:45 test-vm sshd[32334]: debug1: server_input_global_request: rtype no-more-sessions@openssh. com want_reply 0
Jun 22 16:41:45 test-vm sshd[32334]: debug1: server_input_channel_req: channel 0 request pty-req reply 1
Jun 22 16:41:45 test-vm sshd[32334]: debug1: session_by_channel: session 0 channel 0
Jun 22 16:41:45 test-vm sshd[32334]: debug1: session_input_channel_req: session 0 req pty-req
Jun 22 16:41:45 test-vm sshd[32334]: debug1: Allocating pty.
Jun 22 16:41:45 test-vm sshd[32332]: debug2: session_new: allocate (allocated 0 max 10)
Jun 22 16:41:45 test-vm sshd[32332]: debug1: session_new: session 0
Jun 22 16:41:45 test-vm sshd[32332]: debug1: SELinux support disabled
Jun 22 16:41:45 test-vm sshd[32334]: debug1: session_pty_req: session 0 alloc /dev/pts/0
Jun 22 16:41:45 test-vm sshd[32334]: debug1: server_input_channel_req: channel 0 request env reply 0
Jun 22 16:41:45 test-vm sshd[32334]: debug1: session_by_channel: session 0 channel 0
Jun 22 16:41:45 test-vm sshd[32334]: debug1: session_input_channel_req: session 0 req env
Jun 22 16:41:45 test-vm sshd[32334]: debug2: Setting env 0: LC_CTYPE=fr_FR.utf8
Jun 22 16:41:45 test-vm sshd[32334]: debug1: server_input_channel_req: channel 0 request shell reply 1
Jun 22 16:41:45 test-vm sshd[32334]: debug1: session_by_channel: session 0 channel 0
Jun 22 16:41:45 test-vm sshd[32334]: debug1: session_input_channel_req: session 0 req shell
Jun 22 16:41:45 test-vm sshd[32334]: Starting session: shell on pts/0 for admin from foreman port 40530 id 0
Jun 22 16:41:45 test-vm sshd[32334]: debug2: fd 3 setting TCP_NODELAY
Jun 22 16:41:45 test-vm sshd[32334]: debug2: channel 0: rfd 12 isatty
Jun 22 16:41:45 test-vm sshd[32334]: debug2: fd 12 setting O_NONBLOCK
Jun 22 16:41:45 test-vm sshd[32335]: debug1: Setting controlling tty using TIOCSCTTY.
Jun 22 16:41:52 test-vm sshd[32334]: debug1: Received SIGCHLD.
Jun 22 16:41:52 test-vm sshd[32334]: debug1: session_by_pid: pid 32335
Jun 22 16:41:52 test-vm sshd[32334]: debug1: session_exit_message: session 0 channel 0 pid 32335
Jun 22 16:41:52 test-vm sshd[32334]: debug2: channel 0: request exit-status confirm 0
Jun 22 16:41:52 test-vm sshd[32334]: debug1: session_exit_message: release channel 0
Jun 22 16:41:52 test-vm sshd[32334]: debug2: channel 0: write failed
Jun 22 16:41:52 test-vm sshd[32334]: debug2: channel 0: close_write
Jun 22 16:41:52 test-vm sshd[32334]: debug2: channel 0: send eow
Jun 22 16:41:52 test-vm sshd[32334]: debug2: channel 0: output open -> closed
Jun 22 16:41:52 test-vm sshd[32334]: debug2: notify_done: reading
Jun 22 16:41:52 test-vm sshd[32334]: debug2: channel 0: read<=0 rfd 12 len -1
Jun 22 16:41:52 test-vm sshd[32334]: debug2: channel 0: read failed
Jun 22 16:41:52 test-vm sshd[32334]: debug2: channel 0: close_read
Jun 22 16:41:52 test-vm sshd[32334]: debug2: channel 0: input open -> drain
Jun 22 16:41:52 test-vm sshd[32334]: debug2: channel 0: ibuf empty
Jun 22 16:41:52 test-vm sshd[32334]: debug2: channel 0: send eof
Jun 22 16:41:52 test-vm sshd[32334]: debug2: channel 0: input drain -> closed
Jun 22 16:41:52 test-vm sshd[32334]: debug2: channel 0: send close
Jun 22 16:41:52 test-vm sshd[32332]: debug1: session_by_tty: session 0 tty /dev/pts/0
Jun 22 16:41:52 test-vm sshd[32332]: debug1: session_pty_cleanup: session 0 release /dev/pts/0
Jun 22 16:41:52 test-vm sshd[32334]: debug2: channel 0: rcvd close
Jun 22 16:41:52 test-vm sshd[32334]: Received disconnect from foreman port 40530:11: disconnected by user
Jun 22 16:41:52 test-vm sshd[32334]: Disconnected from foreman port 40530
Jun 22 16:41:52 test-vm sshd[32334]: debug1: do_cleanup
Jun 22 16:41:52 test-vm sshd[32332]: debug1: do_cleanup
Jun 22 16:41:52 test-vm sshd[32332]: debug1: PAM: cleanup
Jun 22 16:41:52 test-vm sshd[32332]: debug1: PAM: closing session
Jun 22 16:41:52 test-vm sshd[32332]: pam_unix(sshd:session): session closed for user admin
Jun 22 16:41:52 test-vm sshd[32332]: debug1: PAM: deleting credentials

ssh -Q mac résult:

Foreman:
ssh -Q mac
hmac-sha1
hmac-sha1-96
hmac-sha2-256
hmac-sha2-512
hmac-md5
hmac-md5-96
hmac-ripemd160
hmac-ripemd160@openssh. com
umac-64@openssh. com
umac-128@openssh. com
hmac-sha1-etm@openssh. com
hmac-sha1-96-etm@openssh. com
hmac-sha2-256-etm@openssh. com
hmac-sha2-512-etm@openssh. com
hmac-md5-etm@openssh. com
hmac-md5-96-etm@openssh. com
hmac-ripemd160-etm@openssh. com
umac-64-etm@openssh. com
umac-128-etm@openssh. com


Taget VM:

ssh -Q mac
hmac-sha1
hmac-sha1-96
hmac-sha2-256
hmac-sha2-512
hmac-md5
hmac-md5-96
hmac-ripemd160
hmac-ripemd160@openssh. com
umac-64@openssh. com
umac-128@openssh. com
hmac-sha1-etm@openssh. com
hmac-sha1-96-etm@openssh. com
hmac-sha2-256-etm@openssh. com
hmac-sha2-512-etm@openssh. com
hmac-md5-etm@openssh. com
hmac-md5-96-etm@openssh. com
hmac-ripemd160-etm@openssh. com
umac-64-etm@openssh. com
umac-128-etm@openssh. com