Skip to content

www.linuxonlinehelp.de

Nonprofit Linux PC & Server Support Hotline since 2004

Show
  • Breaking News
  • RSS News
  • Impressum GDPR DSGVO
  • Contact

Linux Console: SSH Echo Last User LOGIN Info

Posted on 2017-05-102018-01-27 by Thomas Sternasky

If you use SSH Logins to your Systems, you perhaps want to know, who logged in last days and from which IP Address.

Screenshot SSH Login Echo LAST Info:

last logged in info log ssh session

Howto:

  • Open the .profile File at your Home with a Editor and enter:

clear
last -n 4

  • This will echo after login the last 4 Logins including the used IP’s
  • To prevent Hackers to purge the lines set the .profile File “readonly”

sudo chmod 444 .profile
sudo chown root:root .profile

Posted in CentOS Red Hat Enterprise Smeserver Bluequartz Strongbolt, Debian, FreeBSD Unix, Howto, Linux Einstieg Newbie, Linux Global, Linux Micro Server Projekt, News, openwrt, raspian, Security Infos, Terminal, ubuntuTagged checkout last logins, console, dropbear, last log, login info, openssh, security info sshd, shell, show last user login, ssh server, ssh session info, wtmp

Post navigation

← Android: Amazon Fire TV replace App Starter
Google: Chrome Browser RSS Reader →

Categories

Affiliate Android Apache Archiving AVM Backup CentOS Red Hat Enterprise Smeserver Bluequartz Strongbolt Cleanup Cloud Office Debian Facebook Firefox Thunderbird Firewall FreeBSD Unix Freifunk fritzbox getsimple-cms Green IT Hardware Bugs on Linux Howto Laptop Handling Tips Libreoffice Linode Linux Einstieg Newbie Linux Fehler-Bugs Linux for Green IT Solutions Linux Global Linux Micro Server Projekt Maintenance MySQL News nextcloud Openbox openmips Open Source Software Bug Reports openwrt Opera Bugs+Help owncloud raspian Router Save Energy Security Infos Slim Socialmedia Support Technic Tips Terminal Tinycorelinux twitter ubuntu unity Windows Wordpress Bugs Wordpress Help

My Project Bookmarks

  • Breaking News Timeline
  • Franz Raab Hersfeld
  • News Timeline
  • Twitter Linuxonlinehelp
  • Webcam Weatherstation Hersfeld
  • Wiki

IT Security Bookmarks

  • DSA Debian Security Bugs
  • Kali Linux Tool OS
  • Privoxy Proxy NoAds
  • Tails Ram OS Secure
  • Tor Net Anonymous
  • USN Ubuntu Security Bugs
  • Vulnerability Database

Linux Bookmarks

  • Damn Mini Linux Embedded
  • Debian Forum
  • Debian Linux Home
  • Devuan NEW!
  • Download Ubuntu
  • Elementary OS Linux
  • Linux Kernel Bugs Library
  • LXDE Window Manager
  • Openbox Windowmanager
  • Openmips Multimedia OS
  • Openwrt LEDE Bugs
  • Openwrt Router OS
  • Raspberry Pi Project
  • Tiny Core Linux
  • Ubuntu Forum German
  • Ubuntu Linux Home
  • Xfce4 Desktop Home

Unix Bookmarks

  • Forum DesktopBSD
  • FreeBSD Unix OS
  • FreeBSD Wiki
  • Monowall Firewall OS 32bit
  • OPN Sense (mOnOWall)
  • PF Sense Firewall OS BSD 64bit