-
Notifications
You must be signed in to change notification settings - Fork 260
fix(pgw): add more troubleshooting #3862
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Changes from 2 commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 13 additions & 8 deletions
21
...rk/public-gateways/troubleshooting/cant-connect-to-instance-with-pn-gateway.mdx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,29 @@ | ||
| --- | ||
| meta: | ||
| title: I cannot connect to my Instance using SSH after attaching it to a Private Network which has a Public Gateway | ||
| title: I cannot connect to my Instance using SSH after attaching it to a Private Network with a Public Gateway | ||
| description: This page explains how troubleshoot connection problems after attaching an Instance to a Private Network which has a Public Gateway | ||
| content: | ||
| h1: I cannot connect to my Instance using SSH after attaching it to a Private Network which has a Public Gateway | ||
| h1: I cannot connect to my Instance using SSH after attaching it to a Private Network with a Public Gateway | ||
| paragraph: This page explains how troubleshoot connection problems after attaching an Instance to a Private Network which has a Public Gateway | ||
| tags: troubleshoot error private-network private network vpc public-gateway | ||
| dates: | ||
| validation: 2024-05-24 | ||
| validation: 2024-10-21 | ||
| posted: 2021-05-26 | ||
| categories: | ||
| - network | ||
| --- | ||
|
|
||
| <Macro id="requirements" /> | ||
| If you are having trouble [connecting to your Instance via SSH](/compute/instances/how-to/connect-to-instance/), when the Instance is attached to a Private Network which also has an attached Public Gateway, read on for help and solutions. | ||
|
|
||
| - [Owner](/identity-and-access-management/iam/concepts/#owner) status or [IAM permissions](/identity-and-access-management/iam/concepts/#permission) allowing you to perform actions in the intended Organization | ||
| The action to take depends on whether: | ||
|
|
||
| The action to take depends on whether the Private Network(s) your Instance is on have DHCP enabled, and whether your Public Gateway is set to advertise a default route (true by default). | ||
| - The Private Network(s) attached to your Instance have [DHCP enabled](/network/vpc/how-to/activate-dhcp/), and | ||
| - Your Public Gateway is set to [advertise a default route](/network/public-gateways/concepts/#default-route) (true by default). | ||
|
|
||
| If it is not the case, disconnect the Instance from the Private Network, as there may be other factors impacting your Instance, like one of your Instances running a DHCP server. | ||
| If the above two conditions are not true, there may be other factors impacting your Instance, like one of your Instances running a DHCP server. Try disconnecting and reconnecting the Instance from the Private Network. | ||
|
|
||
| If DHCP is activated and your Public Gateway is set to advertise a default route, this is expected behavior as all the traffic towards your Instance now goes through the Public Gateway. To access your Instance using SSH, first create a static NAT association between a port of your Public Gateway (eg 2222) and the private IP assigned to your Instance, on the SSH port (22 by default). Then, SSH to the Public Gateway's IP on port 2222. | ||
| If DHCP **is** activated and your Public Gateway **is** set to advertise a default route, not being able to connect to your Instance via SSH is **expected behavior**. All the traffic towards your Instance now goes through the Public Gateway. | ||
|
|
||
| To access your Instance using SSH, either: | ||
| - Use [SSH bastion](/network/public-gateways/how-to/use-ssh-bastion/), or | ||
| - Create a static NAT association between a port of your Public Gateway (eg 2222) and the private IP assigned to your Instance, on the SSH port (22 by default). Then, SSH to the Public Gateway's IP on port 2222. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.