Getting error runningÂ
2025-04-24 10:04:40.39 Â GLDAS86003 Start Main
2025-04-24 10:04:40.39 Â GLDAS86003 Action Type :
2025-04-24 10:04:40.39 Â GLDAS86003 Resource Type : KUBERNETES
2025-04-24 10:04:40.41 Â GLDAS86003 Start Open-ConnectionsWithLinuxBox
JP1 -ComputerName nhnaunxabaps001.goldlnk.rootlnka.net -Credential  -KeyFile D:\IFS\MWS\UB1-MWS-2422UB\ifsroot\utils\..\config\secrets\.ssh\nhnaunxabaps001_goldlnk_rootlnka_net_id_rsa
Module Posh-SSH exists with version 3.1.3.
Posh-SSH is already at the required version 3.1.3.
Module check and installation process completed.
2025-04-24 10:04:40.55 Â GLDAS86003 Open Connections with Linux Box(nhnaunxabaps001.goldlnk.rootlnka.net)...
JP2 .. -Computer nhnaunxabaps001.goldlnk.rootlnka.net -Credential System.Management.Automation.PSCredential -KeyFile D:\IFS\MWS\UB1-MWS-2422UB\ifsroot\utils\..\config\secrets\.ssh\nhnaunxabaps001_goldlnk_rootlnka_net_id_rsa
New-SSHSession : Exception has been thrown by the target of an invocation.
At D:\IFS\MWS\UB1-MWS-2422UB\ifsroot\utils\common.psm1:77 char:23
+ ... LOBAL:ssh = New-SSHSession -Computer $NodeName -Credential $cred -Key ...
+ Â Â Â Â Â Â Â Â ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo      : InvalidOperation: (Renci.SshNet.SshClient:SshClient) .New-SSHSession], TargetInvocationE
  xception
  + FullyQualifiedErrorId : SSH.NewSshSession
Exception Occurred While Opening Connection with the Linux Box.
2025-04-24 10:04:41.08 Â GLDAS86003 Stop Open-ConnectionsWithLinuxBox
D:\IFS\MWS\UB1-MWS-2422UB\ifsroot\main.ps1 : Error found in ScriptHalted. Please check logs for details.
At line:1 char:1
+ .\main.ps1 -resource 'KUBERNETES'
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  + CategoryInfo      : NotSpecified: (:) ÂWrite-Error], WriteErrorException
  + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,main.ps1
>>> Finalize Script Execution <<<
Clean up Scripts in Linux Box.
Close Open Connections with Linux Box.
2025-04-24 10:04:41.19 Â GLDAS86003 Start Close-ConnectionsWithLinuxBox
2025-04-24 10:04:41.19 Â GLDAS86003 Close Connections with Linux Box(nhnaunxabaps001.goldlnk.rootlnka.net)...
Close-ConnectionsWithLinuxBox
2025-04-24 10:04:41.21 Â GLDAS86003 Stop Close-ConnectionsWithLinuxBox
Â
The management server is Windows 2019
The Middleware VM was built with ubuntu-22.04.5-live-server-amd64.iso
.\main.ps1  -resource  'INIT'
.\main.ps1  -resource  'KEY'
… ran without issue and …
ssh -i D:\IFS\MWS\UB1-MWS-2422UB\ifsroot\utils\..\config\secrets\.ssh\<..>_net_id_rsa ifs@<server>
logs in without issue …
during the attempt auth.log on the Ubuntu box yields
Apr 24 14:13:00 nhnaunxabaps001 sshdo1009]: debug1: Forked child 16271.
Apr 24 14:13:00 nhnaunxabaps001 sshdi16271]: debug1: Set /proc/self/oom_score_adj to 0
Apr 24 14:13:00 nhnaunxabaps001 sshde16271]: debug1: rexec start in 5 out 5 newsock 5 pipe 7 sock 8
Apr 24 14:13:00 nhnaunxabaps001 sshde16271]: debug1: inetd sockets after dupping: 4, 4
Apr 24 14:13:00 nhnaunxabaps001 sshdp16271]: warning: /etc/hosts.allow, line 10: missing ":" separator
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: Connection from 10.72.166.45 port 64217 on 10.72.172.37 port 22 rdomain ""
Apr 24 14:13:00 nhnaunxabaps001 sshdr16271]: debug1: Local version string SSH-2.0-OpenSSH_8.9p1 Ubuntu-3ubuntu0.11
Apr 24 14:13:00 nhnaunxabaps001 sshdu16271]: debug1: Remote protocol version 2.0, remote software version Renci.SshNet.SshClient.0.0.1
Apr 24 14:13:00 nhnaunxabaps001 sshdi16271]: debug1: compat_banner: no match: Renci.SshNet.SshClient.0.0.1
Apr 24 14:13:00 nhnaunxabaps001 sshdi16271]: debug1: permanently_set_uid: 113/65534 spreauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: list_hostkey_types: rsa-sha2-512,rsa-sha2-256,ecdsa-sha2-nistp256,ssh-ed25519 apreauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: SSH2_MSG_KEXINIT sent apreauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: SSH2_MSG_KEXINIT received spreauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: kex: algorithm: curve25519-sha256 dpreauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: kex: host key algorithm: ssh-ed25519 6preauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: kex: client->server cipher: aes128-ctr MAC: hmac-sha2-256 compression: none epreauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: kex: server->client cipher: aes128-ctr MAC: hmac-sha2-256 compression: none epreauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: expecting SSH2_MSG_KEX_ECDH_INIT hpreauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: SSH2_MSG_KEX_ECDH_INIT received spreauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: rekey out after 4294967296 blocks dpreauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: SSH2_MSG_NEWKEYS sent apreauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: expecting SSH2_MSG_NEWKEYS 0preauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: Connection closed by 10.72.166.45 port 64217 6preauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: do_cleanup :preauth]
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: monitor_read_log: child log fd closed
Apr 24 14:13:00 nhnaunxabaps001 sshd 16271]: debug1: do_cleanup
Apr 24 14:13:00 nhnaunxabaps001 sshdd16271]: debug1: Killing privsep child 16272
Apr 24 14:13:00 nhnaunxabaps001 sshdh16271]: debug1: audit_event: unhandled event 12
Â