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.3.tar.gz (15.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: notify_client_server-0.1.3.tar.gz
  • Upload date:
  • Size: 15.9 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.3.tar.gz
Algorithm Hash digest
SHA256 6433d2e2e2af3b70d80d629a69d7e87f38268e924cf4e22f07ca06b8fedd22b6
MD5 77a6d2bc4b34476c3c6ec40609bd9884
BLAKE2b-256 3e42f52fd9cc4e1e1dbab10fe7b23ce535c2fa84486d982379d444e9a29fac7f

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