Skip to content

Commit fcbdf61

Browse files
committed
update README.md
1 parent 8b7a388 commit fcbdf61

File tree

1 file changed

+9
-22
lines changed

1 file changed

+9
-22
lines changed

README.md

+9-22
Original file line numberDiff line numberDiff line change
@@ -89,29 +89,16 @@ The SSH setup has been established and is currently in use for the Ansible conta
8989
ssh -i ./sysadmin-ssh-keys/rsa_sysadmin -p 22001 sysadmin@localhost
9090
```
9191

92-
**SSH connection information**: example local/laptop `~/.ssh/config` configugration
93-
```
94-
Host bastion-dev
95-
HostName localhost
96-
User sysadmin
97-
Port 22222
98-
IdentityFile /home/sysadmin/.ssh/id_rsa
99-
100-
Host ansible-dev
101-
HostName ansible-dev
102-
User sysadmin
103-
Port 22
104-
IdentityFile /home/sysadmin/.ssh/id_rsa
105-
106-
Host web-dev
107-
HostName web-dev
108-
User sysadmin
109-
Port 22
110-
IdentityFile /home/sysadmin/.ssh/id_rsa
111-
```
112-
- Assume remote username `sysadmin`. Replace these values in your own local/laptop configuration.
92+
**SSH connection from bastion**:
11393
- ProxyJump allow you to use `ssh bastion` to connect to the bastion-dev host, and `ssh ansible-dev` or `ssh web-dev`, and SSH will automatically connect through the bastion jump host.
114-
94+
Execute.the.following.command.to.confirm.the.bastion connection:
95+
....```shell
96+
ssh -J sysadmin@localhost:22222 sysadmin@web-dev
97+
....```
98+
99+
....```shell
100+
....ssh.-J.sysadmin@localhost:22222.sysadmin@ansible-dev
101+
....`
115102

116103
## Related Links
117104
- [Ansible Documentation](https://docs.ansible.com/)

0 commit comments

Comments
 (0)