Ssh
-
grep SSH Login Attempts
I recently needed to review all SSH login attempts on a server running Ubuntu Server and used this one-liner to accomplish it. Piping
grepintolessjust lets you stay on the keyboard instead of scrolling with the mouse. -
tail over SSH
taildisplays a log and updates it in realtime. This command tail’s the log over SSH so that you can keep a log displayed in one window while doing more terminal work in another tab/window. -
scp
This command copies a file from your machine over SSH to a remote machine. Quotation marks are included to escape the folder name that has a space in it. Add -rp if you need to copy a directory: