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

Is there a way to select the shell-type for a new session? #523

Open
cedricmenzi05 opened this issue Apr 10, 2023 · 1 comment
Open

Is there a way to select the shell-type for a new session? #523

cedricmenzi05 opened this issue Apr 10, 2023 · 1 comment

Comments

@cedricmenzi05
Copy link

Is there a way to select the shell i want to use when using New-SSHSession?
I need to open a SSH-Connection to the shell /bin/clsh but the device default is another one.
Thanks!

@darkoperator
Copy link
Owner

When you create a new session, an interactive shell is not created. It is only at the protocol level. Invoke-SSHCommand runs a specified binary with the parameters passed and the command's stdout is sent back. It is not run in a shell. A ShellStream does create an interactive shell with the default shell, once started you can start the other from within the streamshell by writing to it with a carriage return to indicate the entering of a command.

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