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

add custom parameter to ssh connection config #450

Open
carlosivanrangel opened this issue Dec 20, 2022 · 1 comment
Open

add custom parameter to ssh connection config #450

carlosivanrangel opened this issue Dec 20, 2022 · 1 comment

Comments

@carlosivanrangel
Copy link

carlosivanrangel commented Dec 20, 2022

Is currently possible to add a custom parameter or option to the connection config? For example: -t customparameter

This:
ssh localhost -l steel -t customparameter

Here:

ssh.connect({
  host: 'localhost',
  username: 'steel',
  privateKey: Buffer.from('...')
})

Thanks in advance.

@steelbrain
Copy link
Owner

Hello! My knowledge about ssh2 beyond the common used options is limited. A quick search on explainshell explained that -t customparam means the following

Force pseudo-tty allocation. This can be used to execute arbitrary screen-based programs on a
remote machine, which can be very useful, e.g. when implementing menu services. Multiple -t
options force tty allocation, even if ssh has no local tty.

I couldn't find a 1-to-1 mapping of the option but you may have a better luck. The full list of options is available at https://github.com/mscdex/ssh2

Good luck!

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

2 participants