Merge pull request #5345 from znull/znull/ssh-config-example

ssh.go: use setup example that should work with any ssh config
This commit is contained in:
Mislav Marohnić 2022-03-29 16:15:56 +02:00 committed by GitHub
commit 3f5311ea1c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ func newSSHCmd(app *App) *cobra.Command {
$ gh codespace ssh
$ gh codespace ssh --config > ~/.ssh/codespaces
$ echo 'include ~/.ssh/codespaces' >> ~/.ssh/config
$ printf 'Match all\nInclude ~/.ssh/codespaces\n' >> ~/.ssh/config
`),
PreRunE: func(c *cobra.Command, args []string) error {
if opts.stdio {