Skip to content

Instantly share code, notes, and snippets.

@DanielSSilva
Created September 26, 2018 19:18
Show Gist options
  • Save DanielSSilva/fe2efa409844530df46e95f6b07c85fe to your computer and use it in GitHub Desktop.
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
# 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