01 January , 2019

Melihat riwayat login di Linux

Memiliki server memang harus mau rutin melakukan pengecekan secara berkala. Karna kita tidak tau kapan serangan itu akan terjadi. Dari hal yang mudah saja ketika kita membuka user root kita pasti akan ada saja orang yang mencoba masuk dengan user root. Nah pada artikel kali ini saya akan membagikan tutorial untuk melihat riwayat login dari server kita. Sebenernya ini hal sepele tapi mungkin akan berguna jika kita rutin melakukan pengecekan pada server kita.

Oke berikut saya berikan tutorialnya :

  1. Pertama menggunkan perintah “last” untuk mengetahui user apa dan kapan saja yang berhasil masuk.
    last
  2. Dan akan terlihat informasi seperti ini
    Anda bisa melihat usernamenya, sesi atau proses apa, alamat IP asal atau sumbernya, hari dan tanggal juga jam, berapa lama loginnya. Cukup detail.
  3. Selanjutnya mengetahui usaha user yang gagal login dengan mengetikkan command berikut
    lastb
  4. Maka akan muncul informasi seperti berikutJika tampilan kosong seperti di atas maka itu artinya server kita aman.
  5. Terakhir adalah melihat login terbaru dari masing – masing username yang ada di Linux, ketikkan perintah berikut di terminal:
    lastlog
  6. Akan muncul informasi seperti berikut

Dari beberapa tool diatas kita bisa memantau dan melacak kapan saja ada akses masuk ke servernya, cocokkan dengan aktivitas anda apakah memang saat tersebut sedang menggunakan server anda. Kalau ada yang tidak cocok patut diperhatikan dan pengamanan perlu ditingkatkan lagi.

Share

Nurul Hidayat

Hello, saya adalah seorang software developer khususnya dibidang web. saya sangat menyukai Shell Scripting & Security semoga tulisan-tulisan kecil saya bisa bermanfaat.

You may also like...

32,809 Responses

  1. Greetings! Very useful advice in this particular post!

    It is the little changes that will make the biggest changes.
    Thanks for sharing!

  2. kyrie 7 says:

    Nice post. I study something more challenging on completely different blogs everyday. It should always be stimulating to read content from other writers and observe slightly something from their store. I抎 desire to make use of some with the content on my weblog whether or not you don抰 mind. Natually I抣l offer you a hyperlink on your web blog. Thanks for sharing.

  3. There’s noticeably a bundle to find out about this. I assume you made sure good factors in options also.

  4. Slot game says:

    Hi! Someone in my Myspace group shared this website with us so I came to
    take a look. I’m definitely loving the information. I’m bookmarking and will be tweeting this to
    my followers! Excellent blog and wonderful design.

  5. lebron 18 says:

    I’m commenting to let you be aware of what a fine encounter our girl obtained reading your web site. She learned many things, most notably what it’s like to have an ideal teaching heart to have most people just learn a number of extremely tough matters. You really exceeded our own expectations. I appreciate you for rendering these beneficial, dependable, revealing and unique guidance on that topic to Janet.

  6. curry 8 says:

    I not to mention my pals appeared to be going through the excellent information and facts found on your web site then then developed an awful suspicion I had not thanked the website owner for those strategies. All the ladies had been as a consequence warmed to study all of them and have surely been tapping into these things. Thank you for being quite thoughtful as well as for picking out this form of terrific issues millions of individuals are really desirous to be informed on. Our sincere regret for not saying thanks to you earlier.

  7. I am glad for writing to let you know what a wonderful experience my wife’s princess enjoyed using yuor web blog. She came to understand lots of issues, which included what it is like to possess an incredible coaching style to make many people with ease gain knowledge of some grueling things. You undoubtedly exceeded our expected results. I appreciate you for churning out those effective, trusted, informative and easy tips on your topic to Sandra.

  8. I and also my friends appeared to be looking at the nice pointers located on your website then before long got a horrible suspicion I had not expressed respect to the web site owner for those secrets. The guys happened to be consequently happy to see them and now have pretty much been loving them. I appreciate you for truly being well considerate and for picking out this sort of nice issues most people are really needing to understand about. Our honest regret for not expressing appreciation to you sooner.

  1. 14 December , 2021

    sildenafil tablets

    WALCOME

Leave a Reply