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

can you provide some example for connect the ssh with same session and pass multiple commands using ssh2-promise #81

Open
mrgsathyaraj opened this issue Jul 22, 2022 · 2 comments

Comments

@mrgsathyaraj
Copy link

Hi @sanketbajoria ,

I am working in a project that requires multiple commands to be passed in the ssh server using same ssh shell session . am not able to find how the multiple commands working with shell .

It will be helpful if you could add some example or concept how it can be done then it will be helpful .

@sanketbajoria
Copy link
Owner

@mrgsathyaraj sorry didn't able to respond earlier.. do you still need help?

@mrgsathyaraj
Copy link
Author

@sanketbajoria

yes I still need the help . what exactly i needed let me describe here .

  1. login to the ssh using ssh.connect() method-Done
  2. I need to read the console contents everytime then send the mentioned command as input
    Note : I need to send multiple commands one by one based on the console output that is displayed .

can you help on this .

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