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

Multiple LocalForward values in ssh::client #365

Closed
wastemans opened this issue Oct 23, 2023 · 2 comments
Closed

Multiple LocalForward values in ssh::client #365

wastemans opened this issue Oct 23, 2023 · 2 comments

Comments

@wastemans
Copy link

Hi,

How would one describe multiple (valid) values?

I'm using something like this:

'Host public' => {
        'HostName' => 'A HOSTNAME',
        'User' => 'A USER',
        'Port' => 'PORT',
        'LocalForward' => '8020 10.1.1.87:80',
        'LocalForward' => '8820 10.1.1.78:8000',
        'LocalForward' => '8021 10.1.1.67:80',
      },

But only the first value is populated in /etc/ssh/sshd_config

Thanks!

@saz
Copy link
Owner

saz commented Mar 27, 2024

Have you tried:

'Host public' => {
        'HostName' => 'A HOSTNAME',
        'User' => 'A USER',
        'Port' => 'PORT',
        'LocalForward' => ['8020 10.1.1.87:80', '8820 10.1.1.78:8000', '8021 10.1.1.67:80',],
      },

@wastemans
Copy link
Author

That worked, thank you :)

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

No branches or pull requests

2 participants