This script can remte setup a linux server from Windows using powershell.
What it can do now
- Make SSH not to use password only keys.
- Setup firewall (nftables).
You have python3 installed for windows.
To download source code from git hub we can oen a terminal.
Invoke-WebRequest https://github.com/TirsvadCLI/Python.Windows.Remote.Linux.ServerSetup/archive/refs/heads/main.zip -OutFile ServerSetup.zip
Expand-Archive -Path ServerSetup.zip -DestinationPath .\
Get-Item "*ServerSetup-*" | Rename-Item -NewName "ServerSetup"
Set-Location .\ServerSetup\srv\ServerSetup
In the folder custom_files you may find setting.json whre you configure your server
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
Fork the Project
- Fork the Project
- Create your Feature Branch
- Commit your Changes
- Push to the Branch
- Open a Pull Request
Example
git checkout -b feature
git commit -m 'Add my feature enhance to project'
git push origin feature