centos 8 could not open a connection to your authentication agent code example
Example: ssh-add could not open a connection to your authentication agent centos
##1
$ cd ~/.ssh
##2
#ubuntu
$ eval $(ssh-agent)
#CentOS
$ exec ssh-agent bash
##3
$ ssh-add my_id_rsa