Fix SSH Agent Forwarding exmaple
This commit is contained in:
parent
b7bff9d251
commit
3728e076fe
|
@ -192,9 +192,16 @@ provisioner](/docs/provisioners/file.html) (more secure) or using `ssh-keyscan`
|
|||
to populate the file (less secure). An example of the latter accessing github
|
||||
would be:
|
||||
|
||||
{ "type": "shell", "inline": \[ "sudo apt-get install -y git", "ssh-keyscan
|
||||
github.com >> \~/.ssh/known\_hosts", "git clone
|
||||
git@github.com:exampleorg/myprivaterepo.git" \] }
|
||||
``` {.javascript}
|
||||
{
|
||||
"type": "shell",
|
||||
"inline": [
|
||||
"sudo apt-get install -y git",
|
||||
"ssh-keyscan github.com >> ~/.ssh/known_hosts",
|
||||
"git clone git@github.com:exampleorg/myprivaterepo.git"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
## Troubleshooting
|
||||
|
||||
|
|
Loading…
Reference in New Issue