Enable SSH on Raspbian OS without Desktop UI (Headless)

Step 1

Whichever storage you’re using for your Raspbian OS either SD Card, SSD, or HDD; remove it from your board and mount the storage to your computer. Look for the boot partition and push an empty file with a filename ssh

Step 2

Put your storage back in the board and start your Raspberry Pi.

Step 3

Connect to your Raspberry Pi with SSH ssh [USERNAME]@[YOUR PI IP OR DOMAIN HERE]

Note: The default username and password for Raspbian is pi for username and raspberry as password, in case you didn’t add a new user or you didn’t change it.

REFERENCES

  1. Raspberry Pi Documentation: SSH Remote Access
  2. Raspberry Pi Documentation: Linux User Management

Written with StackEdit.

Fix SSH Login `Too many authentication failures` Due To Multiple SSH Keys

When loging in to your one of your remote server with or without a password and you got the Too many authentication failures error, then its your ssh client using multiple irrelivant keys for authentication. There are two ways to get out from this. One: Explicitly indicate you’re using password as your method of authentication, if you’re using one. Or, Two: specify SSH to use only relevant identity.

Specific Authentication Method Using Password Only

ssh -o 'PreferredAuthentications password' user@someserver.com

Use Identity Only

ssh -o 'IdentitiesOnly yes' user@someserver.com