I have configured the LDAP server and created groups and users. Then I installed the packages nss-pam-ldapd, openldap-clients, sssd, openssl on client machine. both client and LDAP server are configured on AWS instance.
To sync user of LDAP server with client I am trying to copy the ldap.pem to the client machine but I am getting permission denied error. Below is my command and error:
scp [email protected]:/etc/openldap/cacerts/ldap1_pubkey.pem /etc/openldap/certs ERROR:
Permission denied (publickey)
I am using putty. To authenticate both LDAP server and client in putty I have used putty private key which is generated from the key pair used while creating the instances on AWS.
When I am executing the below command it prompts to enter passphrase and when I leave it empty it give Permission denied error.
scp -i .ssh/authorized_keys2 [email protected]:/etc/openldap/cacerts/ldap1_pubkey.pem /etc/openldap/certs What passphrase should I enter ?
Can anyone please help me out to solve this issue ?