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

Request for sshrc support #2293

Open
cipherswami opened this issue Oct 30, 2024 · 3 comments
Open

Request for sshrc support #2293

cipherswami opened this issue Oct 30, 2024 · 3 comments

Comments

@cipherswami
Copy link

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.

@StevenBucher98
Copy link
Collaborator

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.

@cipherswami
Copy link
Author

@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.

@matsmcp
Copy link

matsmcp commented Nov 12, 2024

my 2 cents.
DefaultShell is per system. I did request to make this per user in #1741

This could be one way of doing it

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

3 participants