Skip to main content

notification server/website with client functions

Project description

*** Under Construction ***

  • setup windows/msys2

  • Ensure OpenSSH server is running on windows

    • Open Services
    • goto "OpenSSh Server"
      • Ensure Startup Type == "Automatic"
      • if Status is not "Running", right click and select "Start"
# see https://www.msys2.org/wiki/Setting-up-SSHd/
$ nano /c/msys64/sshd_default_shell.cmd
    # add one line:
    @C:\msys64\msys2_shell.cmd -defterm -here -no-start -mingw64

set registry entry HKEY_LOCAL_MACHINE\SOFTWARE\OpenSSH\DefaultShell to the path of that batch file.

  • click start memu
  • enter regedit into search
  • click on "run as administrator" in the Registry Editor pane
  • click Yes to allow app to make changes to your device
  • click on HKEY_LOCAL_MACHINE
  • click on SOFTWARE
  • click on OpenSSH
  • should only be "Agent"
  • right click on OpenSSh
  • get menu; click on New
  • get submenu; click on Key
  • get "New Key #1" as a folder inside OpenSSH; rename it to "DefaultShell"
  • click on new DefaultShell
  • right click on "(Default)"
  • get dlgbox; set "Value data:" to C:\msys64\sshd_default_shell.cmd

Windows Firewall

  • open Start menu; enter "firewall" into search; open "Windows Defender Firewall"
    • click "Allow an app or feature..."
    • find "OpenSSH Server" and confirm that it is allowed in Private networks
  • open Start menu; enter "firewall" into search; open "Windows Defender Firewall"
    • click "Advanced settings"
# DOESN'T WORK
$ cd /c/projects   # or a directory to create the script
$ nano msys2-sshd-setup.sh
  # cut-n-paste text from the website above
$ ./msys2-sshd-setup.sh

# If you get "The user name could not be found."



$ pacman -Syu
$ pacman -S openssh
$ pacman -S cygrunsrv
$ pacman -S mingw-w64-x86_64-editrights

$ ssh-host-config
    # You'll be prompted with several questions.  
    #  It's generally safe to accept the default values (just press Enter) 
    # unless you have specific requirements
$ nano /etc/ssh/sshd_config
    # Port 22               :  # confirm
    # ListenAddress 0.0.0.0 :  # confirm
    # PasswordAuthentication yes :  # For initial testing, you might want to enable password authentication.  
                                    # However, for security, it's highly recommended to switch to 
                                    # public key authentication as soon as possible.
    # Subsystem       sftp    /usr/bin/sftp-server:  Make sure this line is not commented out
    # StrictModes no        :  You might need to set this to no to avoid permission errors.

$ cygservice -S sshd

# Configure Windows Firewall
#   allow port 22

TODO check Windows username
TODO set up ssh auth 
#   ~/.ssh/authorized_keys
  • run do_server

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

notify_client_server-0.1.0.tar.gz (15.8 kB view details)

Uploaded Source

File details

Details for the file notify_client_server-0.1.0.tar.gz.

File metadata

  • Download URL: notify_client_server-0.1.0.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.17

File hashes

Hashes for notify_client_server-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f9adfb5e04e7cafa340d4ec193044c208ce339513248ac4855da5733262e5c03
MD5 23be834e91e9b87c9e1e67a7ee491e68
BLAKE2b-256 53976aea804e9a5c3d516898c809d2599337768d29c54e7f9e0ff7c0f4ef3643

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page