Posts

Showing posts with the label ssh

How to create strong Passwords

Is your password exposed? To check your password is leaked in any event of data breach. Click here . What not to do Don't create easy passwords such as Name Mobile number Pet name Date of birth 123456 ,.. etc Avoid using words with any meaning to prevent dictionary attack. Avoid recycling password. How to create secure passwords No password is unbreakable, longer it takes to crack better it is. You can use song lyrics with upper and lower case mixing or first or second letter of the each word in the song. The club isn't the best place to find a lover tCiTbPtFaL  t1C2i3T4b5P6t7F8a9L  t3C4i4T3b4 ( starting letter with word count ) hLStElOi O( second letter ) You can use sentences or phrases or Quotes and convert it similar to song. You can use next letter in keyboard to the word you want for (G) to use it can be a key left(F) or right(H). But don't create left and right randomly, so u can memorize easily.  Use as much characters as possible Use combination of number, alph...

Two step verification for SSH using Google authentication in 3 simple steps

Image
    Google Authenticator (GA) Google authenticator is a tool which generate 6 digits Time-based One Time Password(TOTP) for authentication which supports authenticator service(GA, Authy, ..).     Step 1 : Install Google authenticator  $ sudo apt update $ sudo apt install libpam-google-authenticator   Step 2 : Configure Google authenticator $ google-authenticator     time based authentication - y   Scan code using google authenticator ios or android app or type in the secret key ** Copy the emergency scratch codes Next type ( y )   Type ( y ) to prevent man-in-the-middle attack Type ( n ) Type ( y ) for rate limiting ** If detailed explanation is required please comment. I will make another post with detailed explanation.   Step 3 : Configure ssh $ sudo nano /etc/pam.d/sshd Add the following line to last line of the file auth required pam_google_authenticator.so   $ sudo nano /etc/ssh/sshd_config Find and Replace ChallengeRespo...

SSH Login without PASSWORD in 2 Simple Steps

This post describes how to login using ssh without password prompt every time. Let say you have to ssh from steve to bill Login to Steve Step 1 : Generate the key $ ssh-keygen   Step 2 : Copy the ssh key $ ssh-copy-id -i ~/.ssh/id_rsa.pub bill@ip Try ssh $ ssh bill@ip Password won't be prompted.