Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 9870f1f

Browse files
committed
Extended documentation to included usage examples.
1 parent 259c2e9 commit 9870f1f

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

command-keys.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,31 @@ $ cat ~/.ssh/id-rsa.apache-php.app-1.1.1.pub | ssh -i ~/.vagrant.d/insecure_priv
3737
core@core-01.local \
3838
update-ssh-keys -a core@apache-php.app-1.1.1
3939
```
40+
41+
### Usage
42+
43+
```
44+
$ ssh -i ~/.ssh/id-rsa.apache-php.app-1.1.1 \
45+
core@core-01.local \
46+
-o StrictHostKeyChecking=no
47+
```
48+
49+
#### SSH Config
50+
51+
To simplify the command required to access the running container we can add an entry to the SSH configuration file ```~/.ssh/config``` as follows:
52+
53+
```
54+
Host core-01.apache-php.app-1.1.1
55+
HostName core-01.local
56+
Port 22
57+
User core
58+
StrictHostKeyChecking no
59+
IdentitiesOnly yes
60+
IdentityFile ~/.ssh/id-rsa.apache-php.app-1.1.1
61+
```
62+
63+
With the above entry in place we can now run the following to access the running container:
64+
65+
```
66+
$ ssh core-01.apache-php.app-1.1.1
67+
```

0 commit comments

Comments
 (0)