File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ func (r *RootCmd) ssh() *clibase.Cmd {
53
53
waitEnum string
54
54
noWait bool
55
55
logDirPath string
56
+ remoteForward string
56
57
)
57
58
client := new (codersdk.Client )
58
59
cmd := & clibase.Cmd {
@@ -424,6 +425,13 @@ func (r *RootCmd) ssh() *clibase.Cmd {
424
425
FlagShorthand : "l" ,
425
426
Value : clibase .StringOf (& logDirPath ),
426
427
},
428
+ {
429
+ Flag : "remote-forward" ,
430
+ Description : "Enable remote port forwarding." ,
431
+ Env : "CODER_SSH_REMOTE_FORWARD" ,
432
+ FlagShorthand : "R" ,
433
+ Value : clibase .StringOf (& remoteForward ),
434
+ },
427
435
}
428
436
return cmd
429
437
}
Original file line number Diff line number Diff line change @@ -27,6 +27,9 @@ Start a shell into a workspace
27
27
behavior as non-blocking.
28
28
DEPRECATED: Use --wait instead.
29
29
30
+ -R, --remote-forward string, $CODER_SSH_REMOTE_FORWARD
31
+ Enable remote port forwarding.
32
+
30
33
--stdio bool, $CODER_SSH_STDIO
31
34
Specifies whether to emit SSH output over stdin/stdout.
32
35
Original file line number Diff line number Diff line change @@ -57,6 +57,15 @@ Specify the directory containing SSH diagnostic log files.
57
57
58
58
Enter workspace immediately after the agent has connected. This is the default if the template has configured the agent startup script behavior as non-blocking.
59
59
60
+ ### -R, --remote-forward
61
+
62
+ | | |
63
+ | ----------- | -------------------------------------- |
64
+ | Type | <code >string</code > |
65
+ | Environment | <code >$CODER_SSH_REMOTE_FORWARD</code > |
66
+
67
+ Enable remote port forwarding.
68
+
60
69
### --stdio
61
70
62
71
| | |
You can’t perform that action at this time.
0 commit comments