sudo apt-get remove openssh-server && sudo apt-get install openssh-server
/etc/ssh/sshd_config
:
Change - PermitRootLogin no
Add - AllowUsers yourusername
Change - PasswordAuthentication yes
Add - UsePrivilegeSeparation no
Change - ListenAddress 0.0.0.0
Change - Port 2200
sudo service ssh --full-restart
Install SSH Server:
dism /online /Add-Capability /CapabilityName:OpenSSH.Server~~~~0.0.1.0
Generate SSH Key:
cd c:\windows\system32\OpenSSH
ssh-keygen -A
Add user policy to run scripts:
Set-ExecutionPolicy -ExecutionPolicy AllSigned
Fix Permissions:
Install-Module -Force OpenSSHUtils
Repair-SshdHostKeyPermission -FilePath C:\Windows\System32\OpenSSH\ssh_host_ed25519_key
Start service:
sc start sshd
net stop wuauserv
net stop bits
Dism.exe /online /Cleanup-Image /AnalyzeComponentStore
Uninstall all previous versions of components
Dism.exe /online /Cleanup-Image /StartComponentCleanup
Remove service packs uninstallation files
Dism.exe /online /Cleanup-Image /SPSuperseded
Remove all old versions of EVERY component
Dism.exe /online /Cleanup-Image /StartComponentCleanup /ResetBase
Use Compact OS:
Compact.exe /CompactOS:query
Compact.exe /CompactOS:always
Reduce Hibernation:
powercfg /h /type reduced
powercfg /h /off