mirror of
https://github.com/fleschutz/PowerShell.git
synced 2025-08-12 06:02:56 +02:00
Updated enter-host.ps1
This commit is contained in:
@ -8,7 +8,7 @@
|
|||||||
.EXAMPLE
|
.EXAMPLE
|
||||||
PS> ./enter-host.ps1 tux
|
PS> ./enter-host.ps1 tux
|
||||||
✅ tux is online (3ms latency to 192.168.1.179)
|
✅ tux is online (3ms latency to 192.168.1.179)
|
||||||
⏳ Connecting as user 'markus' using OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2
|
⏳ Trying to connect as user 'markus' with OpenSSH_for_Windows_9.5p1, LibreSSL 3.8.2
|
||||||
markus@tux's password:
|
markus@tux's password:
|
||||||
...
|
...
|
||||||
.LINK
|
.LINK
|
||||||
@ -36,7 +36,7 @@ try {
|
|||||||
& "$PSScriptRoot/wake-up-host.ps1"
|
& "$PSScriptRoot/wake-up-host.ps1"
|
||||||
}
|
}
|
||||||
|
|
||||||
Write-Host "⏳ Connecting as user '$remoteUser' using " -noNewline
|
Write-Host "⏳ Trying to connect as user '$remoteUser' with " -noNewline
|
||||||
& ssh -V
|
& ssh -V
|
||||||
if ($lastExitCode -ne 0) { throw "'ssh -V' failed with exit code $lastExitCode" }
|
if ($lastExitCode -ne 0) { throw "'ssh -V' failed with exit code $lastExitCode" }
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user