Be notified (e.g. mail) of unsuccessful FTP login attempts to my server












0















I have a server I log in to with FTP. I'd like to know of a way to be notified of fraudulent login attempts.










share|improve this question









New contributor




venkat sai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 3





    Confusing - "login fails .... if anyone logs in". If the login failed, nobody got logged in.

    – waltinator
    yesterday











  • actually if we have correct credentials then there is no problem. If login to FTP server fails i need an email alert or echo statement i.e "login failed"

    – venkat sai
    yesterday











  • its FTP not ssh

    – venkat sai
    yesterday











  • you guys are really not nice, this is a new user, quit downvoting

    – tatsu
    16 hours ago











  • @tatsu Downvote means a “question does not show any research effort; it is unclear or not useful”. Thank you for improving the question, I bet it gets no more downvotes now.

    – Melebius
    15 hours ago
















0















I have a server I log in to with FTP. I'd like to know of a way to be notified of fraudulent login attempts.










share|improve this question









New contributor




venkat sai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 3





    Confusing - "login fails .... if anyone logs in". If the login failed, nobody got logged in.

    – waltinator
    yesterday











  • actually if we have correct credentials then there is no problem. If login to FTP server fails i need an email alert or echo statement i.e "login failed"

    – venkat sai
    yesterday











  • its FTP not ssh

    – venkat sai
    yesterday











  • you guys are really not nice, this is a new user, quit downvoting

    – tatsu
    16 hours ago











  • @tatsu Downvote means a “question does not show any research effort; it is unclear or not useful”. Thank you for improving the question, I bet it gets no more downvotes now.

    – Melebius
    15 hours ago














0












0








0


1






I have a server I log in to with FTP. I'd like to know of a way to be notified of fraudulent login attempts.










share|improve this question









New contributor




venkat sai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I have a server I log in to with FTP. I'd like to know of a way to be notified of fraudulent login attempts.







email ftp






share|improve this question









New contributor




venkat sai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




venkat sai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 15 hours ago









Melebius

4,79051939




4,79051939






New contributor




venkat sai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked yesterday









venkat saivenkat sai

62




62




New contributor




venkat sai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





venkat sai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






venkat sai is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 3





    Confusing - "login fails .... if anyone logs in". If the login failed, nobody got logged in.

    – waltinator
    yesterday











  • actually if we have correct credentials then there is no problem. If login to FTP server fails i need an email alert or echo statement i.e "login failed"

    – venkat sai
    yesterday











  • its FTP not ssh

    – venkat sai
    yesterday











  • you guys are really not nice, this is a new user, quit downvoting

    – tatsu
    16 hours ago











  • @tatsu Downvote means a “question does not show any research effort; it is unclear or not useful”. Thank you for improving the question, I bet it gets no more downvotes now.

    – Melebius
    15 hours ago














  • 3





    Confusing - "login fails .... if anyone logs in". If the login failed, nobody got logged in.

    – waltinator
    yesterday











  • actually if we have correct credentials then there is no problem. If login to FTP server fails i need an email alert or echo statement i.e "login failed"

    – venkat sai
    yesterday











  • its FTP not ssh

    – venkat sai
    yesterday











  • you guys are really not nice, this is a new user, quit downvoting

    – tatsu
    16 hours ago











  • @tatsu Downvote means a “question does not show any research effort; it is unclear or not useful”. Thank you for improving the question, I bet it gets no more downvotes now.

    – Melebius
    15 hours ago








3




3





Confusing - "login fails .... if anyone logs in". If the login failed, nobody got logged in.

– waltinator
yesterday





Confusing - "login fails .... if anyone logs in". If the login failed, nobody got logged in.

– waltinator
yesterday













actually if we have correct credentials then there is no problem. If login to FTP server fails i need an email alert or echo statement i.e "login failed"

– venkat sai
yesterday





actually if we have correct credentials then there is no problem. If login to FTP server fails i need an email alert or echo statement i.e "login failed"

– venkat sai
yesterday













its FTP not ssh

– venkat sai
yesterday





its FTP not ssh

– venkat sai
yesterday













you guys are really not nice, this is a new user, quit downvoting

– tatsu
16 hours ago





you guys are really not nice, this is a new user, quit downvoting

– tatsu
16 hours ago













@tatsu Downvote means a “question does not show any research effort; it is unclear or not useful”. Thank you for improving the question, I bet it gets no more downvotes now.

– Melebius
15 hours ago





@tatsu Downvote means a “question does not show any research effort; it is unclear or not useful”. Thank you for improving the question, I bet it gets no more downvotes now.

– Melebius
15 hours ago










1 Answer
1






active

oldest

votes


















1














Install fail2ban in order to ban and send emails



here is how you can install this software :




  1. Open up a terminal (CtrlAltT)

  2. type : sudo apt install fail2ban sendmail (being on an updated system is of importance)


  3. then allow SSH access through UFW and then enable the firewall:



    ufw allow ssh
    ufw enable




the default configuration should be adequate all that is left to do is configure your mail



source : https://www.linode.com/docs/security/using-fail2ban-for-security/#ubuntu






share|improve this answer










New contributor




Alpy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 3





    Welcome to AskUbuntu! This answer would be useful if you were to go into more detail on how to configure fail2ban after installation in order to accomplish the desired goal. Hint: You can find this information here. I highkly recommend that you review askubuntu.com/help/how-to-answer Cheers!

    – Elder Geek
    yesterday











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "89"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






venkat sai is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1121414%2fbe-notified-e-g-mail-of-unsuccessful-ftp-login-attempts-to-my-server%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









1














Install fail2ban in order to ban and send emails



here is how you can install this software :




  1. Open up a terminal (CtrlAltT)

  2. type : sudo apt install fail2ban sendmail (being on an updated system is of importance)


  3. then allow SSH access through UFW and then enable the firewall:



    ufw allow ssh
    ufw enable




the default configuration should be adequate all that is left to do is configure your mail



source : https://www.linode.com/docs/security/using-fail2ban-for-security/#ubuntu






share|improve this answer










New contributor




Alpy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 3





    Welcome to AskUbuntu! This answer would be useful if you were to go into more detail on how to configure fail2ban after installation in order to accomplish the desired goal. Hint: You can find this information here. I highkly recommend that you review askubuntu.com/help/how-to-answer Cheers!

    – Elder Geek
    yesterday
















1














Install fail2ban in order to ban and send emails



here is how you can install this software :




  1. Open up a terminal (CtrlAltT)

  2. type : sudo apt install fail2ban sendmail (being on an updated system is of importance)


  3. then allow SSH access through UFW and then enable the firewall:



    ufw allow ssh
    ufw enable




the default configuration should be adequate all that is left to do is configure your mail



source : https://www.linode.com/docs/security/using-fail2ban-for-security/#ubuntu






share|improve this answer










New contributor




Alpy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 3





    Welcome to AskUbuntu! This answer would be useful if you were to go into more detail on how to configure fail2ban after installation in order to accomplish the desired goal. Hint: You can find this information here. I highkly recommend that you review askubuntu.com/help/how-to-answer Cheers!

    – Elder Geek
    yesterday














1












1








1







Install fail2ban in order to ban and send emails



here is how you can install this software :




  1. Open up a terminal (CtrlAltT)

  2. type : sudo apt install fail2ban sendmail (being on an updated system is of importance)


  3. then allow SSH access through UFW and then enable the firewall:



    ufw allow ssh
    ufw enable




the default configuration should be adequate all that is left to do is configure your mail



source : https://www.linode.com/docs/security/using-fail2ban-for-security/#ubuntu






share|improve this answer










New contributor




Alpy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










Install fail2ban in order to ban and send emails



here is how you can install this software :




  1. Open up a terminal (CtrlAltT)

  2. type : sudo apt install fail2ban sendmail (being on an updated system is of importance)


  3. then allow SSH access through UFW and then enable the firewall:



    ufw allow ssh
    ufw enable




the default configuration should be adequate all that is left to do is configure your mail



source : https://www.linode.com/docs/security/using-fail2ban-for-security/#ubuntu







share|improve this answer










New contributor




Alpy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer








edited 16 hours ago









tatsu

244332




244332






New contributor




Alpy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered yesterday









AlpyAlpy

1995




1995




New contributor




Alpy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Alpy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Alpy is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








  • 3





    Welcome to AskUbuntu! This answer would be useful if you were to go into more detail on how to configure fail2ban after installation in order to accomplish the desired goal. Hint: You can find this information here. I highkly recommend that you review askubuntu.com/help/how-to-answer Cheers!

    – Elder Geek
    yesterday














  • 3





    Welcome to AskUbuntu! This answer would be useful if you were to go into more detail on how to configure fail2ban after installation in order to accomplish the desired goal. Hint: You can find this information here. I highkly recommend that you review askubuntu.com/help/how-to-answer Cheers!

    – Elder Geek
    yesterday








3




3





Welcome to AskUbuntu! This answer would be useful if you were to go into more detail on how to configure fail2ban after installation in order to accomplish the desired goal. Hint: You can find this information here. I highkly recommend that you review askubuntu.com/help/how-to-answer Cheers!

– Elder Geek
yesterday





Welcome to AskUbuntu! This answer would be useful if you were to go into more detail on how to configure fail2ban after installation in order to accomplish the desired goal. Hint: You can find this information here. I highkly recommend that you review askubuntu.com/help/how-to-answer Cheers!

– Elder Geek
yesterday










venkat sai is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















venkat sai is a new contributor. Be nice, and check out our Code of Conduct.













venkat sai is a new contributor. Be nice, and check out our Code of Conduct.












venkat sai is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1121414%2fbe-notified-e-g-mail-of-unsuccessful-ftp-login-attempts-to-my-server%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How did Captain America manage to do this?

迪纳利

南乌拉尔铁路局