1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-27 10:42:35 +03:00

made x11 forwarding configurable (fixes #1950, fixes #1954)

This commit is contained in:
Eugene Pankov 2020-01-03 16:04:30 +01:00
parent 86cd560089
commit 2f7dcf3339
2 changed files with 7 additions and 10 deletions

View File

@ -31,6 +31,7 @@ export interface SSHConnection {
keepaliveCountMax?: number
readyTimeout?: number
color?: string
x11?: boolean
algorithms?: {[t: string]: string[]}
}
@ -89,16 +90,7 @@ export class SSHSession extends BaseSession {
this.open = true
try {
try {
this.shell = await this.openShellChannel({ x11: true })
} catch (e) {
if (e.toString().includes('Unable to request X11')) {
this.logger.debug('X11 forwarding rejected, trying without')
this.shell = await this.openShellChannel({})
} else {
throw e
}
}
this.shell = await this.openShellChannel({ x11: this.connection.x11 })
} catch (err) {
this.emitServiceMessage(`Remote rejected opening a shell channel: ${err}`)
}

View File

@ -81,6 +81,11 @@
ngb-tab(id='advanced')
ng-template(ngbTabTitle) Advanced
ng-template(ngbTabContent)
.form-line
.header
.title X11 forwarding
toggle([(ngModel)]='connection.x11')
.form-group
label Keep Alive Interval (Milliseconds)
input.form-control(