Skip to content

Commit 9f6caf1

Browse files
committed
Clarified instructions for testing SSH
Signed-off-by: Ole Herman Schumacher Elgesem <[email protected]>
1 parent e9fa05b commit 9f6caf1

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

guide/getting-started-with-cfengine-build/installation.markdown

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,15 +144,25 @@ Come back to this tutorial after you have completed the installation and setup o
144144
Test that ssh works:
145145

146146
```
147-
147+
$ ssh [email protected] -C "echo hello"
148+
hello
148149
```
149150

150-
Save the host in `cf-remote` so you can copy-paste our later commands:
151+
If you see `hello` printed, it worked! If not, these are some of the more common error scenarios:
152+
153+
* If it prints `Connection refused`, it might be because you just started the machine, wait a bit and try again.
154+
* If it hangs for many seconds, it might mean that you typed the wrong IP address (`Ctrl + C` to interrupt).
155+
* If it prints `Connection timed out`, you are most likely using the wrong IP address.
156+
* If it gives any other errors, such as `Permission denied (publickey)` you may be using the wrong user / SSH key or IP address. Double check and try again.
157+
158+
After you see ssh working, save the host in `cf-remote` so you can copy-paste our later commands:
151159

152160
```
153161
$ cf-remote save -H [email protected] --role hub --name hub
154162
```
155163

164+
**Note:** If you are not using the vagrant machine with that IP address, remember to replace it with the one you use.
165+
156166
The host is now in a `cf-remote` group called `hub`, so we don't have to type the username and IP, for example:
157167

158168
```

0 commit comments

Comments
 (0)