Skip navigation

Say you’re working at a log search company and you need to quickly generate some SSH Invalid User errors for searching or alerting within your product.

while true; do 
  ssh -o PreferredAuthentications=publickey bob$RANDOM@localhost;
  sleep 240;
done

This should generate some messages in your logs (/var/log/secure.log under MacOS) like:


Aug 10 10:06:03 jupiter sshd[73325]: Invalid user bob30582 from ::1

Advertisement

2 Trackbacks/Pingbacks

  1. [...] Greg Albrecht If it has an IP, I've touched it. AboutResume « Quick & Dirty SSH “Invalid User” Message Generator [...]

  2. [...] Generate some sshd log messages. [...]

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.