The problem of the impossibility of creating an access connection to the machine via ssh via a key arose after the server with the configured connection was reinstalled. Now I perform the following actions on the client:
ssh-copy-id -i ~/.ssh/id_rsa.pub pc-10@192.168.1.210/usr/bin/ssh-copy-id: INFO: Source of key(s) to be installed: "/home/alexandr/.ssh/id_rsa.pub" /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys sign_and_send_pubkey: signing failed: agent refused operation pc-10@192.168.1.210's password: Number of key(s) added: 1 Now try logging into the machine, with: "ssh 'pc-10@192.168.1.210'" and check to make sure that only the key(s) you wanted were added. ssh pc-10@192.168.1.210 sign_and_send_pubkey: signing failed: agent refused operation pc-10@192.168.1.210's password: ssh-keygen -t dsa ssh pc-10@192.168.1.210 rm .ssh/authorized_keys exit ssh-copy-id -i ~/.ssh/id_rsa.pub pc-10@192.168.1.210 ssh-copy-id -i ~/.ssh/id_dsa.pub pc-10@192.168.1.210 ssh pc-10@192.168.1.210 sudo nano /etc/ssh/sshd_config раскоментировал: AuthorizedKeysFile %h/.ssh/authorized_keys As you can see the connection requests a password. What do I need to do. in order not to cause possible harm to the client machine and its configured access keys to other machines?