-
Notifications
You must be signed in to change notification settings - Fork 779
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
Request for sshrc support #2293
Comments
Thanks for the issue @cipherswami! We have documentation on how to set up your default shell here, https://github.com/PowerShell/Win32-OpenSSH/wiki/DefaultShell, would this satisfy your scenario, or do you need more commands to be ran in the sshrc file? Additionally, I am not sure how we could only use this for particular sessions since the sshrc seems to be a core feature for ssh and would affect any session. |
@StevenBucher98 Thanks for helping me set the default shell. I think the last time I didn't set "commandOption", hence it was interfering with sftp. But still I request you guys to set PowerShell as default shell in future versions of win32-OpenSSH. And support for system wide sshrc file, would be great. |
my 2 cents. This could be one way of doing it |
Changing shell to PowerShell is not enough because in Windows all PowerShell scripts must have valid file name extension (e.g. |
Summary of the new feature / enhancement
In UNIX implementation has local rc file in ~/.ssh and system wide sshrc fie in /etc/ssh, which runs when ssh'ed.
Proposed technical implementation details (optional)
Please implement a similar feature for Windows OpenSSH to use PowerShell as the default SSH shell, while still not effecting other sessions like SFTP, VS Code SSH server.
The text was updated successfully, but these errors were encountered: