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

Uploaded Source

File details

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

File metadata

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

File hashes

Hashes for notify_client_server-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2ce5a9f32512949f4ba4674af026be3d0fc61e927a547ccaa08d8c37d199716f
MD5 94ff12f101c420d490e310b1eb8fc4fe
BLAKE2b-256 1e546bbef914a65da2ef56b7e1071287f65f65fe4db0a5121766db0c6f7db37a

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