Skip to content

Commit

Permalink
more clarity for vscode remote ssh public IP address
Browse files Browse the repository at this point in the history
  • Loading branch information
lorcanrae committed May 25, 2024
1 parent 8bba9fd commit df2226f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _partials/vscode_remote_ssh.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ That's the only extension you should install on your _local_ machine, we will in
<img alt="vscode-connect-to-host" src="https://wagon-public-datasets.s3.amazonaws.com/data-engineering/setup/vscode-connect-to-host.png" width=500>

- Click on `Add a new host`
- Type `ssh -i <path/to/your/private/key> <username>@<ip address>`, for instance, my username is `somedude`, and private key at `~/.ssh/id_rsa`, with a public IP of `34.77.50.76`, I'll type `ssh -i ~/.ssh/id_rsa [email protected]`
- Type `ssh -i <path/to/your/private/key> <username>@<ip address>`, for instance, my username is `somedude`, my private SSH key is located at `~/.ssh/id_rsa` on my local computer, my VM has a public IP of `34.77.50.76`: I'll type `ssh -i ~/.ssh/id_rsa [email protected]`

<img alt="vscode-ssh-connection-command" src="https://wagon-public-datasets.s3.amazonaws.com/data-engineering/setup/vscode-ssh-connection-command.png" width=500>

Expand Down Expand Up @@ -67,7 +67,7 @@ You can now change Host to whatever you would like to see as the name of your co
```bash
# For instance
Host "de-bootcamp-vm"
HostName 35.240.107.210
HostName 34.77.50.76 # replace with your VM's public IP address
IdentityFile <file path for your ssh key>
User <username>
```
Expand Down

0 comments on commit df2226f

Please sign in to comment.