Skip to content

Commit fe1f3ee

Browse files
committed
💄
1 parent 5e88082 commit fe1f3ee

File tree

2 files changed

+25
-6
lines changed

2 files changed

+25
-6
lines changed

extensions/gitpod/src/remoteConnector.ts

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ export default class RemoteConnector extends Disposable {
436436
throw new NoSSHGatewayError(gitpodHost);
437437
}
438438

439-
const sshHostKeys: { type: string, host_key: string }[] = await sshHostKeyResponse.json();
439+
const sshHostKeys: { type: string; host_key: string }[] = await sshHostKeyResponse.json();
440440

441441
const ownerToken = await withServerApi(session.accessToken, serviceUrl.toString(), service => service.server.getOwnerToken(workspaceId), this.logger);
442442

@@ -460,8 +460,9 @@ export default class RemoteConnector extends Disposable {
460460
username: sshDestInfo.user,
461461
authHandler(_methodsLeft, _partialSuccess, _callback) {
462462
return {
463-
type: 'none',
464-
username: sshDestInfo.user,
463+
type: 'password',
464+
username: workspaceId,
465+
password: ownerToken,
465466
};
466467
},
467468
hostVerifier(hostKey) {
@@ -492,7 +493,7 @@ export default class RemoteConnector extends Disposable {
492493
return Buffer.from(JSON.stringify(sshDestInfo), 'utf8').toString('hex');
493494
}
494495

495-
private async getWorkspaceLocalAppSSHDestination(params: SSHConnectionParams): Promise<{ localAppSSHDest: string; localAppSSHConfigPath: string; }> {
496+
private async getWorkspaceLocalAppSSHDestination(params: SSHConnectionParams): Promise<{ localAppSSHDest: string; localAppSSHConfigPath: string }> {
496497
return vscode.window.withProgress({
497498
location: vscode.ProgressLocation.Notification,
498499
cancellable: true,
@@ -629,7 +630,7 @@ export default class RemoteConnector extends Disposable {
629630
if (action === seeLogs) {
630631
this.logger.show();
631632
} 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'));
633634
}
634635
return;
635636
}
@@ -661,7 +662,7 @@ export default class RemoteConnector extends Disposable {
661662
vscode.window.showTextDocument(document);
662663
}
663664
} 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'));
665666
}
666667
} else {
667668
// Do nothing, user cancelled the operation

extensions/yarn.lock

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,11 @@ bufrw@^1.3.0:
423423
hexer "^1.5.0"
424424
xtend "^4.0.0"
425425

426+
427+
version "0.0.3"
428+
resolved "https://registry.yarnpkg.com/buildcheck/-/buildcheck-0.0.3.tgz#70451897a95d80f7807e68fc412eb2e7e35ff4d5"
429+
integrity sha512-pziaA+p/wdVImfcbsZLNF32EiWyujlQLwolMqUQE8xpKNOH7KmZQaY8sXN7DGOEzPAElo9QTaeNRfGnf3iOJbA==
430+
426431
427432
version "0.0.2"
428433
resolved "https://registry.yarnpkg.com/charenc/-/charenc-0.0.2.tgz#c0a1d2f3a7092e03774bfa83f14c0fc5790a8667"
@@ -476,6 +481,14 @@ cookie@^0.4.2:
476481
resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.2.tgz#0e41f24de5ecf317947c82fc789e06a884824432"
477482
integrity sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA==
478483

484+
cpu-features@~0.0.4:
485+
version "0.0.4"
486+
resolved "https://registry.yarnpkg.com/cpu-features/-/cpu-features-0.0.4.tgz#0023475bb4f4c525869c162e4108099e35bf19d8"
487+
integrity sha512-fKiZ/zp1mUwQbnzb9IghXtHtDoTMtNeb8oYGx6kX2SYfhnG0HNdBEBIzB9b5KlXu5DQPhfy3mInbBxFcgwAr3A==
488+
dependencies:
489+
buildcheck "0.0.3"
490+
nan "^2.15.0"
491+
479492
create-error@^0.3.1:
480493
version "0.3.1"
481494
resolved "https://registry.yarnpkg.com/create-error/-/create-error-0.3.1.tgz#69810245a629e654432bf04377360003a5351a23"
@@ -758,6 +771,11 @@ ms@^2.0.0:
758771
resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2"
759772
integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==
760773

774+
nan@^2.15.0:
775+
version "2.15.0"
776+
resolved "https://registry.yarnpkg.com/nan/-/nan-2.15.0.tgz#3f34a473ff18e15c1b5626b62903b5ad6e665fee"
777+
integrity sha512-8ZtvEnA2c5aYCZYd1cvgdnU6cqwixRoYg70xPLWUws5ORTa/lnw+u4amixRS/Ac5U5mQVgp9pnlSUnbNWFaWZQ==
778+
761779
node-addon-api@^3.2.1:
762780
version "3.2.1"
763781
resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-3.2.1.tgz#81325e0a2117789c0128dab65e7e38f07ceba161"

0 commit comments

Comments
 (0)