Skip to content

Commit

Permalink
update port number for putty plink
Browse files Browse the repository at this point in the history
  • Loading branch information
hurngchunlee committed Apr 4, 2022
1 parent 3f56bbc commit cd8a742
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion _static/tunnel2vnc/tunnel2vnc.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ $Env:Path += ";${Env:ProgramFiles}\PuTTY;${Env:ProgramFiles(x86)}\PuTTY;${Env:Pr
if ( Get-command plink.exe ) { # default option: Putty
Write-Connection-Info -VncPort ${vncport} -FtpPort ${ftpport}
# start plink, commandline putty
Start-Process -FilePath plink.exe -ArgumentList "-ssh ${username}@ssh.dccn.nl -t -N -L ${vncport}:${vnchost}:${vncport} -L ${ftpport}:${vnchost}:22" -NoNewWindow -Wait
Start-Process -FilePath plink.exe -ArgumentList "-ssh ${username}@ssh.dccn.nl -t -N -L ${vncport}:${vnchost}:${vncport} -L ${ftpport}:${vnchost}:22 -P 10990" -NoNewWindow -Wait

} elseif ( Get-command ssh) { # second option: OpenSSH (To be tested)
Write-Connection-Info -VncPort ${vncport} -FtpPort ${ftpport}
Expand Down

0 comments on commit cd8a742

Please sign in to comment.