Skip to content
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

Allow using network profiles as nested profile for each other #33202

Open
Gfrni opened this issue May 18, 2024 · 1 comment
Open

Allow using network profiles as nested profile for each other #33202

Gfrni opened this issue May 18, 2024 · 1 comment

Comments

@Gfrni
Copy link

Gfrni commented May 18, 2024

When connecting through multiple SSH tunnels, network profiles cannot be reused inside each other.
For example:
Database A_db is accessible through tunnel A.
Database B_db is accessible through tunnel B.
Tunnel B is accessible through tunnel A.

So, I should create two network profiles:

  1. A_tunnel which is used to connect A_db
  2. AB_tunnel which is used to connect B_db

The problem: While I have already defined tunnel A settings in A_tunnel profile, I should define it again in AB_tunnel.

As a solution, I suggest reusing network profiles in each other, as nested fields.

Alternatively, similar to this earlier feature request, listing system-wide SSH hosts in network profiles menu solves this problem, because in system SSH configuration file, a host can be reused as a tunnel in other hosts, like this:

Host A
	(A settings)
Host B
	(B settings only, ignoring A...)
	ProxyCommand ssh A nc %h %p
@arhayka
Copy link
Member

arhayka commented May 29, 2024

Thank you for the idea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants