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

Feature Request: allow parameter to ask for pseudo tty allocation for SSH PSSession #11970

Closed
borgdylan opened this issue Feb 27, 2020 · 3 comments
Labels
Issue-Enhancement the issue is more of a feature request than a bug Resolution-Duplicate The issue is a duplicate. WG-Engine core PowerShell engine, interpreter, and runtime

Comments

@borgdylan
Copy link

Summary of the new feature/enhancement

I am finding the SSH remoting feature very useful but it is lacking a featrure that the raw ssh command has. Raw SSH allocates a pseudo-TTY automatically for interactive sessions and of given the parameter -t it will also do that for a batch session. Can there be a similar option for New-PSSession and Enter-PSSession? Pseudo-TTYs are a must to run sudo in a remote interactive shell. The workaround of using <password> | sudo -s <command> violates a commonly held tenet of not typing passwords where command history may save them. It maybe acceptable to do so in a batch script but not in an interactive setting where the user is there to type teh password when prompted.

Proposed technical implementation details (optional)

I propose a new parameter -AllocateTTY that would force allocate a pseudo-TTY. According to forums I have looked at the commonly used Renci.SSHNet library used for SSH in .NET applications surfaces this option in its APIs.

I expect that I can run sudo normally like when I use the normal ssh command whenever I create and enter a remote SSH based PSSession.

@borgdylan borgdylan added the Issue-Enhancement the issue is more of a feature request than a bug label Feb 27, 2020
@iSazonov
Copy link
Collaborator

iSazonov commented Mar 1, 2020

For reference #11343

@iSazonov iSazonov added WG-Engine core PowerShell engine, interpreter, and runtime Resolution-Duplicate The issue is a duplicate. labels Mar 1, 2020
@iSazonov
Copy link
Collaborator

iSazonov commented Mar 1, 2020

Dup #1527

@ghost
Copy link

ghost commented Mar 24, 2020

This issue has been marked as duplicate and has not had any activity for 1 day. It has been closed for housekeeping purposes.

@ghost ghost closed this as completed Mar 24, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Enhancement the issue is more of a feature request than a bug Resolution-Duplicate The issue is a duplicate. WG-Engine core PowerShell engine, interpreter, and runtime
Projects
None yet
Development

No branches or pull requests

2 participants