Exim with Gmail<\/span><\/a><\/strong>\u00a0if your AKLWEB Host account is not verified to send mail.<\/p>\nReplace\u00a0YOUR_EMAIL_ADDRESS<\/code>\u00a0with the\u00a0email address<\/strong>\u00a0that you want to\u00a0receive login notifications<\/strong>.<\/p>\nCentOS<\/strong><\/h3>\nOpen the file\u00a0~\/.bash_profile<\/code>\u00a0in a text editor.<\/p>\nAppend the following lines:<\/strong><\/p>\nIP=\"$(echo $SSH_CONNECTION | cut -d \" \" -f 1)\"\r\nHOSTNAME=$(hostname)\r\nNOW=$(date +\"%e %b %Y, %a %r\")\r\n\r\necho 'Someone from '$IP' logged into '$HOSTNAME' on '$NOW'.' | mail -s 'SSH Login Notification' YOUR_EMAIL_ADDRESS\r\n<\/code><\/pre>\nUbuntu\/Debian<\/strong><\/h3>\nOpen the file\u00a0~\/.bashrc<\/code>\u00a0in a text editor.<\/p>\nAppend the following lines:<\/strong><\/p>\nIP=\"$(echo $SSH_CONNECTION | cut -d \" \" -f 1)\"\r\nHOSTNAME=$(hostname)\r\nNOW=$(date +\"%e %b %Y, %a %r\")\r\n\r\necho 'Someone from '$IP' logged into '$HOSTNAME' on '$NOW'.' | mail -s 'SSH Login Notification' YOUR_EMAIL_ADDRESS<\/code><\/pre>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","format":"standard","manualknowledgebasecat":[231,233,242,247],"manual_kb_tag":[325],"_links":{"self":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2514"}],"collection":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/comments?post=2514"}],"version-history":[{"count":1,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2514\/revisions"}],"predecessor-version":[{"id":2515,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb\/2514\/revisions\/2515"}],"wp:attachment":[{"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/media?parent=2514"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manualknowledgebasecat?post=2514"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/support.aklwebhost.com\/wp-json\/wp\/v2\/manual_kb_tag?post=2514"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}