Hi experts, I made a setup ssh key-pairs between two servers.
It worked well, but now I want to delete it.
The problem is that as it is now prompted for authentication locally to the application when trying to run a script for it. For example to run a stop_app, asks me to enter the user password ( should not ).
Here are the steps I did:
server_1:/home/user/> ssh-keygen -t rsa
I not joined the "passphrase" twice, then 2 files were generated:
I copied id_dsa_pub to the server_2:
server_1:/home/user/scp id_rsa.pub user@server_2:/home/user/.ssh/
Prior backup, renamed it id_rsa.pub:
server_2:/home/user/cp -p authorized_keys authorized_keys_bkp
server_2:/home/user/mv id_rsa.pub authorized_keys
I grant permission to the new file:
server_2:/home/user/chmod 644 authorized_keys
To try to remove the entries, I tried on both servers:
ssh-keygen -R hostname
without positive results.
Then, when I returned to the previous file, "autorized_keys", I try:
I see the message:
ssh server_2:/home/user: Temporary failure in name resolution
I did not make a backup of known_hosts.
What are the correct steps to roll back the configuration?
Tkankyou in advanced, regards.