@@ -71,12 +71,12 @@ try {
7171 Start-Sleep - Milliseconds 250
7272
7373 Write-Step " Testing SSH connection to $SshTarget "
74- & ssh.exe - o BatchMode= yes - o ConnectTimeout= 10 -- $SshTarget " echo ready"
74+ & ssh.exe - n - T - o BatchMode= yes - o ConnectTimeout= 10 -- $SshTarget " echo ready"
7575 if ($LASTEXITCODE -ne 0 ) {
7676 throw " SSH connection failed. Configure a host key and non-interactive key or ssh-agent authentication first."
7777 }
7878
79- $remoteArchitecture = (& ssh.exe - o BatchMode= yes -- $SshTarget " uname -m" ).Trim()
79+ $remoteArchitecture = (& ssh.exe - n - T - o BatchMode= yes -- $SshTarget " uname -m" ).Trim()
8080 if ($LASTEXITCODE -ne 0 ) {
8181 throw " Could not detect the remote architecture."
8282 }
@@ -104,11 +104,11 @@ try {
104104
105105 Write-Step " Installing Linux receiver ($remoteArchitecture )"
106106 $remoteTemporary = " .local/bin/$ProgramName .download"
107- & ssh.exe - o BatchMode= yes -- $SshTarget " mkdir -p ~/.local/bin"
107+ & ssh.exe - n - T - o BatchMode= yes -- $SshTarget " mkdir -p ~/.local/bin"
108108 if ($LASTEXITCODE -ne 0 ) { throw " Could not create ~/.local/bin on the remote host." }
109109 & scp.exe - q -- $linuxDownload " ${SshTarget} :$remoteTemporary "
110110 if ($LASTEXITCODE -ne 0 ) { throw " Could not upload the Linux receiver." }
111- & ssh.exe - o BatchMode= yes -- $SshTarget " chmod 755 ~/$remoteTemporary && mv -f ~/$remoteTemporary ~/.local/bin/$ProgramName && ~/.local/bin/$ProgramName --version"
111+ & ssh.exe - n - T - o BatchMode= yes -- $SshTarget " chmod 755 ~/$remoteTemporary && mv -f ~/$remoteTemporary ~/.local/bin/$ProgramName && ~/.local/bin/$ProgramName --version"
112112 if ($LASTEXITCODE -ne 0 ) { throw " Could not activate the Linux receiver." }
113113
114114 Write-Step " Installing Windows client"
0 commit comments