Created
September 26, 2018 19:18
-
-
Save DanielSSilva/fe2efa409844530df46e95f6b07c85fe to your computer and use it in GitHub Desktop.
This gist a quick helper to setup the remote session for the raspberry Pi within PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PowerShell Remoting Over SSH | |
https://github.com/PowerShell/PowerShell-IoT/blob/master/docs/remoting.md | |
(this is required because of the service sshd restart) | |
sudo apt-get purge openssh-server && sudo apt-get install openssh-server | |
sudo nano /etc/ssh/sshd_config | |
Enable password authentication | |
PasswordAuthentication yes | |
Add PowerShell subsystem entry | |
Subsystem powershell sudo pwsh -sshs -NoLogo -NoProfile | |
sudo service sshd restart | |
https://github.com/PowerShell/vscode-powershell/blob/master/docs/remoting.md#remote-file-editing-with-open-editorfile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment