Getting notification for ssh client connection

Ata 1 Reputation point
2022-10-21T18:22:23.763+00:00

I have enabled OpenSSH server as an optional feature of windows 11 (Client not server), I was wondering if there is a way to get notified in the windows notification center when the client is connected?

Windows for business Windows Client for IT Pros User experience Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Limitless Technology 44,746 Reputation points
    2022-10-25T14:33:02.777+00:00

    Hi. Thank you for your question and reaching out.

    Consider modifying the notification.

    1. To access notifications, go to Start > Settings > System.
    2. Attempt one of the following:
      -Toggle notifications, banners, and noises on or off for some or all notification senders by selecting Notifications to expand it.
      -Scroll down and toggle the Windows tips and suggestions on or off.

    --------------------------------------------------------------------------------------------------------------------------------------------------

    If the reply was helpful, please don’t forget to upvote or accept as answer, thank you.

    0 comments No comments

  2. MotoX80 36,291 Reputation points
    2022-10-25T17:15:55.703+00:00

    Find a sample toast notification that works for you and save the Powershell script somewhere.

    https://www.bing.com/search?q=powershell+toast+notification+example

    Navigate to the SSH operational log, pick an event that describes a user logon, right click and select "attach a task to this event". Configure it to run your powershell script and to run as your account and "only when logged on".

    253988-image.png

    If you want more that an a simple 'someone logged on" and you want to include data from the event, then follow these instructions on how to do that.

    https://michlstechblog.info/blog/windows-passing-parameters-to-event-triggered-schedule-tasks/

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.