mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-04-08 18:35:05 +02:00
Listen to port 35000 instead of 8080
This commit is contained in:
parent
5435f75509
commit
b3030036b5
@ -218,8 +218,8 @@ Match User matchuser
|
||||
Add-UserToLocalGroup -UserName $localuser1 -Password $password -GroupName $allowGroup1
|
||||
|
||||
# Start SSH process with Remote Forwarding Option to create a connection that doesn't prevent "Unused Connection Timeout"
|
||||
$p = Start-Process -FilePath ssh -ArgumentList "-p $port -N -T -R 8080 $localuser1@$server" -PassThru
|
||||
Wait-Process $p.Id -Timeout 5 -ErrorAction SilentlyContinue -ErrorVariable timeouted
|
||||
$p = Start-Process -FilePath ssh -ArgumentList "-p $port -N -T -R 35000 $localuser1@$server" -PassThru
|
||||
Wait-Process $p.Id -Timeout 10 -ErrorAction SilentlyContinue -ErrorVariable timeouted
|
||||
if (-not $p.HasExited)
|
||||
{
|
||||
Stop-Process $p.Id -Force
|
||||
|
Loading…
x
Reference in New Issue
Block a user