VScode Remote tunneling via PSMP

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VScode Remote tunneling via PSMP

L5 Sessionator

I found below article. I want to understand about this article as what is used for related to VSCode? How it is useful to us? In what use case I have to follow this document?

Here are the following questions regarding this post before I implement because I have no understanding how it is going to be useful.

 

1) How this document KB will be helpful? How end users can be benefited implementing these solutions? What is this about?

 

2) Should I just follow the steps to be done in PVWA and PSMP and that's all?

3) Should it be installed somewhere?

4) What is the concept of this Tunneling server ports and Remote Tunneling server ports?

 

 

VSCode remote workspaces with PSM for SSH proxy

 

Please help me. I am not sure how this article will be helpful. If there is any dedicated video also. I can take reference too.

1 accepted solution

Accepted Solutions

Thank You. This solution doesn't work properly.

There is known bug.

KI#00015394: Visual Studio Code over PSM for SSH sessions disconnect

View solution in original post

6 REPLIES 6

L7 Applicator

Hi @sanjay sah​ 

 

The Visual Studio Code Remote - SSH extension allows you to open a remote folder on any remote machine container with a running SSH server and then allow to take advantage of VS Code's feature set. Once connected to a server, you can interact with files and folders anywhere on the remote filesystem.

 

1) How this document KB will be helpful? How end users can be benefited implementing these solutions? What is this about? This KB explains a comprehensive guide on integrating Visual Studio Code's (VSCode) Remote - SSH extension with PSMP. End users, particularly developers, can benefit by securely accessing remote systems through PSMP.

 

2) Should I just follow the steps to be done in PVWA and PSMP and that's all? Yes follow the steps,

 

3) Should it be installed somewhere? This integration does not require installing any software apart from having PSMP in your environment.

 

4) What is the concept of this Tunneling server ports and Remote Tunneling server ports? Tunneling server ports is basically forwarding specific local ports to a remote server through a secure SSH tunnel whereas Remote Tunneling server ports is a reverse process by forwarding a remote port on the server to the local machine.

 

 

Hope it helps !

Thank You for very detailed answers and very vivid.

So, for #4, As we know that port 22 can work to connect to any ssh targets, and multiple sessions can be made using port 22 then why multiple ports suggested? Also, I can connect to multiple machines using port 22 and I can access the folders in that machine using VSCode remote ssh session then how "Forwarding local ports to remote" and "Reversing remote server port to local" would help? I am quite confused here.

 

Field_Content_versions_oct20__068Vy00000I00TwIAJ.pngFurthermore, in above screenshot, it suggested to define some settings in VS Code. Where it is actually in VSCode?

 

Thank you for your great help as you always do.

 

L7 Applicator

Hi @sanjay sah​ 

 

The port 22 gets used to authenticate to remote host whereas other ports get used for database, web service or an API.

 

The local port forwarding maps a port on your local machine to a port on the remote server.For example services such as databases is not directly accessible on your local machine but are available on the remote server. The Local port forwarding creates a secure tunnel to these service via your SSH connection.

 

Whereas Remote port forwarding maps a port on the remote server to a port on your local machine.Its required when you want to allow a service running on your local machine to the remote server.

 

Hope it helps !

 

 

 

 

 

 

 

Okay where in VSCode we define those settings?

L7 Applicator

Hi @sanjay sah​ 

 

Please refer to the following article.

 

Hope it helps !

 

 

https://code.visualstudio.com/docs/editor/port-forwarding

Thank You. This solution doesn't work properly.

There is known bug.

KI#00015394: Visual Studio Code over PSM for SSH sessions disconnect

  • 1 accepted solution
  • 720 Views
  • 6 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!