This commit is contained in:
Eugene
2024-08-20 09:12:18 +02:00
parent b5975f045a
commit b0e0709a36

View File

@@ -514,7 +514,7 @@ export class SSHSession {
continue
}
}
if (method.type === 'publickey' && method.contents) {
if (method.type === 'publickey') {
try {
const key = await this.loadPrivateKey(method.name, method.contents)
const result = await this.ssh.authenticateWithKeyPair(this.authUsername, key)