Private Key copied to new Server still asks for password

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
We are migrating from a Solaris server to a Redhat server. My customer has copied the public key of old solaris server to his LDAP server and wants the Private Key of the Solaris Server to be copied to the new RedHad Server and do the password less login.
Note that there is no IP connectivity between New RedHat server and old Solaris server, so I copied the private key of the Solaris server to my local machine and then uploaded it to the Redhat server. After copying the private key, when I try to login to the host server I am still asked for a password.
What am I doing wrong here? Here is the file permission on the copied files:
-rw-r--r--. 1 mycom mycom 401 Jan 19 14:33 id_rsa.pub
-rw-------. 1 mycom mycom 1679 Jan 19 14:33 id_rsa
linux
 |Â
show 1 more comment
up vote
0
down vote
favorite
We are migrating from a Solaris server to a Redhat server. My customer has copied the public key of old solaris server to his LDAP server and wants the Private Key of the Solaris Server to be copied to the new RedHad Server and do the password less login.
Note that there is no IP connectivity between New RedHat server and old Solaris server, so I copied the private key of the Solaris server to my local machine and then uploaded it to the Redhat server. After copying the private key, when I try to login to the host server I am still asked for a password.
What am I doing wrong here? Here is the file permission on the copied files:
-rw-r--r--. 1 mycom mycom 401 Jan 19 14:33 id_rsa.pub
-rw-------. 1 mycom mycom 1679 Jan 19 14:33 id_rsa
linux
1
Welcome to Unix Stackexchange! You can take the tour first and the learn How to Ask a good question. That makes it easier for us to help you.
â andcoz
Jul 5 at 13:58
I do not understand what you are trying to do. Where are you trying to log on? On which server? From which machine? If you are trying to log on the new ldap server, why do you have the private key on that server?
â andcoz
Jul 5 at 14:02
Hi Andcoz, We have 2 servers, Sol-A is a solaris server and Server-B another Server(don't know OS). Sol-A has to copy files from Server-B, without using password. Sol-A is decommissioned gradually, new RedHat Server say RH-A is commissioned to replace Sol-A. Customer network has Public key stored on centrally located LDAP server, associated with the user account, this allows it to be changed in one place and authentication to any of the servers can be done via LDAP. I have to configure password-less authentication and tried copy private key of Sol-A to RH-A, but still asked for password.
â muniaraj govindan
Jul 5 at 15:05
1
Have you checked if both private keys are the same? Have you checked if your config forces password authentication?
â YoMismo
Jul 5 at 15:40
Hi YoMismo, how to check config enforcement for password authentication.
â muniaraj govindan
Jul 6 at 7:52
 |Â
show 1 more comment
up vote
0
down vote
favorite
up vote
0
down vote
favorite
We are migrating from a Solaris server to a Redhat server. My customer has copied the public key of old solaris server to his LDAP server and wants the Private Key of the Solaris Server to be copied to the new RedHad Server and do the password less login.
Note that there is no IP connectivity between New RedHat server and old Solaris server, so I copied the private key of the Solaris server to my local machine and then uploaded it to the Redhat server. After copying the private key, when I try to login to the host server I am still asked for a password.
What am I doing wrong here? Here is the file permission on the copied files:
-rw-r--r--. 1 mycom mycom 401 Jan 19 14:33 id_rsa.pub
-rw-------. 1 mycom mycom 1679 Jan 19 14:33 id_rsa
linux
We are migrating from a Solaris server to a Redhat server. My customer has copied the public key of old solaris server to his LDAP server and wants the Private Key of the Solaris Server to be copied to the new RedHad Server and do the password less login.
Note that there is no IP connectivity between New RedHat server and old Solaris server, so I copied the private key of the Solaris server to my local machine and then uploaded it to the Redhat server. After copying the private key, when I try to login to the host server I am still asked for a password.
What am I doing wrong here? Here is the file permission on the copied files:
-rw-r--r--. 1 mycom mycom 401 Jan 19 14:33 id_rsa.pub
-rw-------. 1 mycom mycom 1679 Jan 19 14:33 id_rsa
linux
edited Jul 5 at 14:40
slmâ¦
233k65479651
233k65479651
asked Jul 5 at 13:52
muniaraj govindan
1
1
1
Welcome to Unix Stackexchange! You can take the tour first and the learn How to Ask a good question. That makes it easier for us to help you.
â andcoz
Jul 5 at 13:58
I do not understand what you are trying to do. Where are you trying to log on? On which server? From which machine? If you are trying to log on the new ldap server, why do you have the private key on that server?
â andcoz
Jul 5 at 14:02
Hi Andcoz, We have 2 servers, Sol-A is a solaris server and Server-B another Server(don't know OS). Sol-A has to copy files from Server-B, without using password. Sol-A is decommissioned gradually, new RedHat Server say RH-A is commissioned to replace Sol-A. Customer network has Public key stored on centrally located LDAP server, associated with the user account, this allows it to be changed in one place and authentication to any of the servers can be done via LDAP. I have to configure password-less authentication and tried copy private key of Sol-A to RH-A, but still asked for password.
â muniaraj govindan
Jul 5 at 15:05
1
Have you checked if both private keys are the same? Have you checked if your config forces password authentication?
â YoMismo
Jul 5 at 15:40
Hi YoMismo, how to check config enforcement for password authentication.
â muniaraj govindan
Jul 6 at 7:52
 |Â
show 1 more comment
1
Welcome to Unix Stackexchange! You can take the tour first and the learn How to Ask a good question. That makes it easier for us to help you.
â andcoz
Jul 5 at 13:58
I do not understand what you are trying to do. Where are you trying to log on? On which server? From which machine? If you are trying to log on the new ldap server, why do you have the private key on that server?
â andcoz
Jul 5 at 14:02
Hi Andcoz, We have 2 servers, Sol-A is a solaris server and Server-B another Server(don't know OS). Sol-A has to copy files from Server-B, without using password. Sol-A is decommissioned gradually, new RedHat Server say RH-A is commissioned to replace Sol-A. Customer network has Public key stored on centrally located LDAP server, associated with the user account, this allows it to be changed in one place and authentication to any of the servers can be done via LDAP. I have to configure password-less authentication and tried copy private key of Sol-A to RH-A, but still asked for password.
â muniaraj govindan
Jul 5 at 15:05
1
Have you checked if both private keys are the same? Have you checked if your config forces password authentication?
â YoMismo
Jul 5 at 15:40
Hi YoMismo, how to check config enforcement for password authentication.
â muniaraj govindan
Jul 6 at 7:52
1
1
Welcome to Unix Stackexchange! You can take the tour first and the learn How to Ask a good question. That makes it easier for us to help you.
â andcoz
Jul 5 at 13:58
Welcome to Unix Stackexchange! You can take the tour first and the learn How to Ask a good question. That makes it easier for us to help you.
â andcoz
Jul 5 at 13:58
I do not understand what you are trying to do. Where are you trying to log on? On which server? From which machine? If you are trying to log on the new ldap server, why do you have the private key on that server?
â andcoz
Jul 5 at 14:02
I do not understand what you are trying to do. Where are you trying to log on? On which server? From which machine? If you are trying to log on the new ldap server, why do you have the private key on that server?
â andcoz
Jul 5 at 14:02
Hi Andcoz, We have 2 servers, Sol-A is a solaris server and Server-B another Server(don't know OS). Sol-A has to copy files from Server-B, without using password. Sol-A is decommissioned gradually, new RedHat Server say RH-A is commissioned to replace Sol-A. Customer network has Public key stored on centrally located LDAP server, associated with the user account, this allows it to be changed in one place and authentication to any of the servers can be done via LDAP. I have to configure password-less authentication and tried copy private key of Sol-A to RH-A, but still asked for password.
â muniaraj govindan
Jul 5 at 15:05
Hi Andcoz, We have 2 servers, Sol-A is a solaris server and Server-B another Server(don't know OS). Sol-A has to copy files from Server-B, without using password. Sol-A is decommissioned gradually, new RedHat Server say RH-A is commissioned to replace Sol-A. Customer network has Public key stored on centrally located LDAP server, associated with the user account, this allows it to be changed in one place and authentication to any of the servers can be done via LDAP. I have to configure password-less authentication and tried copy private key of Sol-A to RH-A, but still asked for password.
â muniaraj govindan
Jul 5 at 15:05
1
1
Have you checked if both private keys are the same? Have you checked if your config forces password authentication?
â YoMismo
Jul 5 at 15:40
Have you checked if both private keys are the same? Have you checked if your config forces password authentication?
â YoMismo
Jul 5 at 15:40
Hi YoMismo, how to check config enforcement for password authentication.
â muniaraj govindan
Jul 6 at 7:52
Hi YoMismo, how to check config enforcement for password authentication.
â muniaraj govindan
Jul 6 at 7:52
 |Â
show 1 more comment
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f453636%2fprivate-key-copied-to-new-server-still-asks-for-password%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Welcome to Unix Stackexchange! You can take the tour first and the learn How to Ask a good question. That makes it easier for us to help you.
â andcoz
Jul 5 at 13:58
I do not understand what you are trying to do. Where are you trying to log on? On which server? From which machine? If you are trying to log on the new ldap server, why do you have the private key on that server?
â andcoz
Jul 5 at 14:02
Hi Andcoz, We have 2 servers, Sol-A is a solaris server and Server-B another Server(don't know OS). Sol-A has to copy files from Server-B, without using password. Sol-A is decommissioned gradually, new RedHat Server say RH-A is commissioned to replace Sol-A. Customer network has Public key stored on centrally located LDAP server, associated with the user account, this allows it to be changed in one place and authentication to any of the servers can be done via LDAP. I have to configure password-less authentication and tried copy private key of Sol-A to RH-A, but still asked for password.
â muniaraj govindan
Jul 5 at 15:05
1
Have you checked if both private keys are the same? Have you checked if your config forces password authentication?
â YoMismo
Jul 5 at 15:40
Hi YoMismo, how to check config enforcement for password authentication.
â muniaraj govindan
Jul 6 at 7:52