@@ -436,7 +436,7 @@ export default class RemoteConnector extends Disposable {
436
436
throw new NoSSHGatewayError ( gitpodHost ) ;
437
437
}
438
438
439
- const sshHostKeys : { type : string , host_key : string } [ ] = await sshHostKeyResponse . json ( ) ;
439
+ const sshHostKeys : { type : string ; host_key : string } [ ] = await sshHostKeyResponse . json ( ) ;
440
440
441
441
const ownerToken = await withServerApi ( session . accessToken , serviceUrl . toString ( ) , service => service . server . getOwnerToken ( workspaceId ) , this . logger ) ;
442
442
@@ -460,8 +460,9 @@ export default class RemoteConnector extends Disposable {
460
460
username : sshDestInfo . user ,
461
461
authHandler ( _methodsLeft , _partialSuccess , _callback ) {
462
462
return {
463
- type : 'none' ,
464
- username : sshDestInfo . user ,
463
+ type : 'password' ,
464
+ username : workspaceId ,
465
+ password : ownerToken ,
465
466
} ;
466
467
} ,
467
468
hostVerifier ( hostKey ) {
@@ -492,7 +493,7 @@ export default class RemoteConnector extends Disposable {
492
493
return Buffer . from ( JSON . stringify ( sshDestInfo ) , 'utf8' ) . toString ( 'hex' ) ;
493
494
}
494
495
495
- private async getWorkspaceLocalAppSSHDestination ( params : SSHConnectionParams ) : Promise < { localAppSSHDest : string ; localAppSSHConfigPath : string ; } > {
496
+ private async getWorkspaceLocalAppSSHDestination ( params : SSHConnectionParams ) : Promise < { localAppSSHDest : string ; localAppSSHConfigPath : string } > {
496
497
return vscode . window . withProgress ( {
497
498
location : vscode . ProgressLocation . Notification ,
498
499
cancellable : true ,
@@ -629,7 +630,7 @@ export default class RemoteConnector extends Disposable {
629
630
if ( action === seeLogs ) {
630
631
this . logger . show ( ) ;
631
632
} else if ( action === showTroubleshooting ) {
632
- vscode . env . openExternal ( vscode . Uri . parse ( 'https://www.gitpod.io/docs/troubleshooting ' ) ) ;
633
+ vscode . env . openExternal ( vscode . Uri . parse ( 'https://www.gitpod.io/docs/ides-and-editors/vscode#vs-code-desktop-ssh-access ' ) ) ;
633
634
}
634
635
return ;
635
636
}
@@ -661,7 +662,7 @@ export default class RemoteConnector extends Disposable {
661
662
vscode . window . showTextDocument ( document ) ;
662
663
}
663
664
} else if ( action === showTroubleshooting ) {
664
- vscode . env . openExternal ( vscode . Uri . parse ( 'https://www.gitpod.io/docs/troubleshooting ' ) ) ;
665
+ vscode . env . openExternal ( vscode . Uri . parse ( 'https://www.gitpod.io/docs/ides-and-editors/vscode#vs-code-desktop-ssh-access ' ) ) ;
665
666
}
666
667
} else {
667
668
// Do nothing, user cancelled the operation
0 commit comments