mirror of
https://github.com/Eugeny/tabby.git
synced 2025-06-19 10:59:54 +00:00
parent
86cd560089
commit
2f7dcf3339
@ -31,6 +31,7 @@ export interface SSHConnection {
|
|||||||
keepaliveCountMax?: number
|
keepaliveCountMax?: number
|
||||||
readyTimeout?: number
|
readyTimeout?: number
|
||||||
color?: string
|
color?: string
|
||||||
|
x11?: boolean
|
||||||
|
|
||||||
algorithms?: {[t: string]: string[]}
|
algorithms?: {[t: string]: string[]}
|
||||||
}
|
}
|
||||||
@ -89,16 +90,7 @@ export class SSHSession extends BaseSession {
|
|||||||
this.open = true
|
this.open = true
|
||||||
|
|
||||||
try {
|
try {
|
||||||
try {
|
this.shell = await this.openShellChannel({ x11: this.connection.x11 })
|
||||||
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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
this.emitServiceMessage(`Remote rejected opening a shell channel: ${err}`)
|
this.emitServiceMessage(`Remote rejected opening a shell channel: ${err}`)
|
||||||
}
|
}
|
||||||
|
@ -81,6 +81,11 @@
|
|||||||
ngb-tab(id='advanced')
|
ngb-tab(id='advanced')
|
||||||
ng-template(ngbTabTitle) Advanced
|
ng-template(ngbTabTitle) Advanced
|
||||||
ng-template(ngbTabContent)
|
ng-template(ngbTabContent)
|
||||||
|
.form-line
|
||||||
|
.header
|
||||||
|
.title X11 forwarding
|
||||||
|
toggle([(ngModel)]='connection.x11')
|
||||||
|
|
||||||
.form-group
|
.form-group
|
||||||
label Keep Alive Interval (Milliseconds)
|
label Keep Alive Interval (Milliseconds)
|
||||||
input.form-control(
|
input.form-control(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user