Open Laboratory for Technocrats

Grab the developer role, learn concepts & prepare with senior software engineers to get solutions for problems in a software job. Coding and Programming Solutions crafted for you.

SSH - FIle Permission is too open Error - Ubuntu

If you ever face this kind if error that means the file/ private key's permission has been changed.
To let it work again we just need to change the accessibility of the file to the owner only again.

Steps to overcome this error:
1. Open Terminal
2. Sudo su and provide root password
3. Move to the location of the private key file
4. Run command as:
chmod -R 600 <Name of the file with extension>
Now we are done, just go and and try to open the file and it will work fine.

Enjoy Learning :) 

Change Password of Private Key - Ubuntu

Want to change the password of the private key in Ubuntu.
Its easy and simple command to go on with it as:
1. Open the Terminal
2. Sudo su
3. Enter the root password for the system
4. Go to the location of the private file by usign cd command
5. Then use the command to change the password
     ssh-keygen -p -f  <Name of the File with extension>
6. It will ask you for the old password: Enter It
7. Put new password
And you are done with it.
You have changed the password.
For more details about the command, run command
man ssh-keygen
You will get the information about the options that we can use.

Enjoy learning :)

Top #3 Articles

Most Read