Line Notification when ssh login to server

Line Notification when ssh login to server

On Ubuntu Server:

  1. Edit file .profile follow this
    • # Get the aliases and functions
      if [ -f ~/.bashrc ]; then
      . ~/.bashrc
      fi

      # User specific environment and startup programs
      curl -X POST -H ‘Authorization: Bearer Line Token key‘ -F ‘message=Server 128.19x.xxx have SSH login‘ https://notify-api.line.me/api/notify
      PATH=$PATH:$HOME/bin
      export PATH
      unset USERNAME
      “~/.profile” 13L, 360C written

 

 

 

For more information let see:
https://havespirit.blogspot.com/2017/02/line-notify-login-server-ssh-linux.html?showComment=1488176559478#c395229580853744821

Like

workdiary has written 200 articles