Keys are removed after reboot, Add ssh keys permanent
If you add private keys or .pem files using ssh-add and reboot your system, they are disappeared.
To add the keys permanently, here is the solution.
Suppose your key file is filename.pem and it is in Documents. In this case, Add the following command in your .bashrc file.
ssh-add /root/Documents/filename.pem 2>/dev/null
Now this key will be added permanently in your listing.
You can add as many keys you want.
If you add private keys or .pem files using ssh-add and reboot your system, they are disappeared.
To add the keys permanently, here is the solution.
Suppose your key file is filename.pem and it is in Documents. In this case, Add the following command in your .bashrc file.
ssh-add /root/Documents/filename.pem 2>/dev/null
Now this key will be added permanently in your listing.
You can add as many keys you want.
No comments:
Post a Comment