tag:blogger.com,1999:blog-8659477878669268846.post7679912780478075961..comments2024-03-22T11:23:53.526+00:00Comments on Confounded Technology: Set up an email alert for SSH connections (Ubuntu + Openssh + Sendemail)Unknownnoreply@blogger.comBlogger14125tag:blogger.com,1999:blog-8659477878669268846.post-26515581202846602502021-11-25T06:44:15.343+00:002021-11-25T06:44:15.343+00:00카지노사이트
바카라사이트
온라인카지노
온라인슬롯사이트<a href="https://sites.google.com/view/slot-games63728/" rel="nofollow"> 카지노사이트</a><br /><a href="http://casino1top.xyz/index.php/2021/11/24/10-casinos-everyone-should-visit/" rel="nofollow"> 바카라사이트</a><br /><a href="https://unsplash.com/@ches89700" rel="nofollow"> 온라인카지노</a><br /><a href="https://medium.com/@ches89700/a-short-prologue-to-online-gambling-1ad06b2e1840" rel="nofollow"> 온라인슬롯사이트</a>바카라사이트https://www.ce-top10.com/noreply@blogger.comtag:blogger.com,1999:blog-8659477878669268846.post-47700949620577306532021-10-06T13:51:43.242+01:002021-10-06T13:51:43.242+01:00This comment has been removed by the author.Avik Majumderhttps://www.blogger.com/profile/03551969559263925349noreply@blogger.comtag:blogger.com,1999:blog-8659477878669268846.post-8905811508144813462021-10-06T13:51:08.969+01:002021-10-06T13:51:08.969+01:00This comment has been removed by the author.Avik Majumderhttps://www.blogger.com/profile/14545145767668124733noreply@blogger.comtag:blogger.com,1999:blog-8659477878669268846.post-64508452094633927502021-09-23T12:23:01.763+01:002021-09-23T12:23:01.763+01:00Amazing or I can say this is a remarkable article....Amazing or I can say this is a remarkable article.<br /><br /><br /><a href="https://www.timetableresults.com/tag/b-com-part-3rd-exam-result/" rel="nofollow">B.Com Part 3rd Exam Result</a>Joan Pintohttps://www.blogger.com/profile/00487570472362668783noreply@blogger.comtag:blogger.com,1999:blog-8659477878669268846.post-1138743408571943892018-07-18T18:44:51.344+01:002018-07-18T18:44:51.344+01:00Very nice post. I just stumbled up?n your weblog a...Very nice post. I just stumbled up?n your weblog and wished to say that I have really enjoyed browsing ?our blog posts.<br />Regards - <a href="https://www.office-help-setup.com/" rel="nofollow">www.office.com/setup</a><br /> Haris Mushtaqhttps://www.blogger.com/profile/12467342910407841159noreply@blogger.comtag:blogger.com,1999:blog-8659477878669268846.post-3947569234834474792013-05-04T02:22:53.950+01:002013-05-04T02:22:53.950+01:00Thank you thats working great!Thank you thats working great!Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8659477878669268846.post-45867391269699298812013-05-03T22:09:52.033+01:002013-05-03T22:09:52.033+01:00Its a bug, work around here
http://raspberrypi.st...Its a bug, work around here<br /><br />http://raspberrypi.stackexchange.com/questions/2118/sendemail-failureMehttps://www.blogger.com/profile/05859657983936221511noreply@blogger.comtag:blogger.com,1999:blog-8659477878669268846.post-58674366392111210392013-05-03T09:59:22.968+01:002013-05-03T09:59:22.968+01:00test@ubuntu-server:~$ ssh -V
OpenSSH_6.0p1 Debian-...test@ubuntu-server:~$ ssh -V<br />OpenSSH_6.0p1 Debian-3ubuntu1, OpenSSL 1.0.1c 10 May 2012<br /><br /><br />sorry forgot to mention which version i was running.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8659477878669268846.post-81346595421283390462013-05-03T09:27:41.413+01:002013-05-03T09:27:41.413+01:00If i select the "tls=no" then i see the ...If i select the "tls=no" then i see the below information. which make me beleive the google does not allow unencrypted connection.<br /><br /><br />May 03 13:48:35 ubuntu-server sendemail[5266]: DEBUG => Connecting to smtp.gmail.com:587<br />May 03 13:48:35 ubuntu-server sendemail[5266]: DEBUG => My IP address is: x.x.x.x<br />May 03 13:48:36 ubuntu-server sendemail[5266]: SUCCESSAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8659477878669268846.post-13369460814208329382013-05-03T09:26:24.567+01:002013-05-03T09:26:24.567+01:00DATE=`date "+%d.%m.%Y %Hh%Mm"`
IP=`echo ...DATE=`date "+%d.%m.%Y %Hh%Mm"`<br />IP=`echo $SSH_CONNECTION | awk '{print $1}'`<br />REVERSE=`dig -x $IP +short`<br />WHO=$(whois $IP | grep desc | tail -1 | cut -c 17-)<br /><br />MESSAGE="SSH Connection from $USER on "`echo "$HOSTNAME"`<br />MESSAGE=$MESSAGE`echo "\nIP : $IP \n"`<br />MESSAGE=$MESSAGE`echo "\nISP : $WHO \n"`<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8659477878669268846.post-42888481191653784102012-05-27T00:24:52.155+01:002012-05-27T00:24:52.155+01:00I don't think sftp has the ability to kick off...I don't think sftp has the ability to kick off a script. Note the ssh rc script actually runs in the SSH session which itself is intended for shell command execution. I suspect you could watch the sftp log with something like tail and grep and when a login is detected then fire off a script - a little messy since you need to have a continuous watch or a watch job.Mehttps://www.blogger.com/profile/05859657983936221511noreply@blogger.comtag:blogger.com,1999:blog-8659477878669268846.post-89202747369472497592012-05-26T12:37:15.944+01:002012-05-26T12:37:15.944+01:00Thanks for the update!
It is mostly working now. ...Thanks for the update! <br />It is mostly working now. i am still getting a few issues with the REVERSE line, but that gone is not an issue. <br /><br />Are you aware of a way to trigger this sort of process, when someone makes a sftp connection? i ask as most users dont have terminal access, and subsequently dont trigger the mail process.<br /><br />Your help has been fantastic so far. i hope itAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-8659477878669268846.post-81823350168205119142012-05-21T15:50:27.069+01:002012-05-21T15:50:27.069+01:00suggests to me you may have copied a line break, I...suggests to me you may have copied a line break, I need to work out how to properly embed code into blogger but it doesn't look straightforward.<br /><br />Until then http://pastebin.com/mFsFKJPZMehttps://www.blogger.com/profile/05859657983936221511noreply@blogger.comtag:blogger.com,1999:blog-8659477878669268846.post-48694922052466323182012-05-21T00:17:33.375+01:002012-05-21T00:17:33.375+01:00hi
i have followed your steps, did not have a sshr...hi<br />i have followed your steps, did not have a sshrc file in the beginning, but i am getting a Syntax error: EOF in backquote substitution foe line 16. even though there is only 15 lines of text in your tutorial. have you come across this before?Anonymousnoreply@blogger.com