Xamin

How to generate SSH key on server02 (Password less login)

How to generate SSH key on server02 (Password less login)

Step 1: Find public and private key on file Server02 SSH key on folder Shared-Tech\Server02 (lastpass)
Step 2: Save private key as named server02_ssh_key on your local machine .ssh folder (on MAC it is here: /Users/xamin05/.ssh).
Step 3:
  • Open file manager of your project on Server02.
  • Go to .ssh folder on root folder
  • Create authorized_keys file
  • Save server02_ssh_key.pub key here and press enter
Step 4:
  • Open your terminal on local machine
  • Type
$ ssh-add ~/.ssh/server02_ssh_key
  • After successfully add you should get
Identity added: /Users/xamin05/.ssh/server02_ssh_key (/Users/xamin05/.ssh/server02_ssh_key)
  • If you receive this:
Permissions 0666 for '/Users/xamin05/.ssh/server02_ssh_key' are too open. It is required that your private key files are NOT accessible by others. This private key will be ignored.
  • Fix the permission by this:
chmod 0600 /users/xamin05/.ssh/server02_ssh_key
Step 5:
  • Now you can login without password on server02
  • Open your terminal and type
ssh This email address is being protected from spambots. You need JavaScript enabled to view it. (example)
Xamin • Xamin • Xamin • Xamin • Xamin • Xamin • Xamin •

Bring the ideas to live with us

Get a Free Quote