Skip to content

Commit 71c9fa1

Browse files
committed
add more ssh config --help documentation
1 parent 369ea53 commit 71c9fa1

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

pkg/cmd/codespace/ssh.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,10 +398,17 @@ func newConfigCmd(app *App) *cobra.Command {
398398
Use: "config [-c codespace]",
399399
Short: "Write OpenSSH configuration to stdout",
400400
Long: heredoc.Docf(`
401-
The config command generates ssh connection configuration in OpenSSH format.
401+
The config command generates per-codespace ssh configuration in OpenSSH format.
402+
403+
Including this configuration in ~/.ssh/config simplifies integration with other tools
404+
that integrate with OpenSSH, such as bash/zsh ssh hostname completion, remote path
405+
completion for scp/rsync/sshfs, git ssh remotes, and so on.
402406
403407
If -c/--codespace is specified, configuration is generated for that codespace
404408
only. Otherwise configuration is emitted for all available codespaces.
409+
410+
Codespaces that aren't in "Available" state are skipped because it's necessary to
411+
connect to the running codespace to determine the required remote ssh username.
405412
`, "`"),
406413
Example: heredoc.Doc(`
407414
$ gh codespace config > ~/.ssh/codespaces

0 commit comments

Comments
 (0)