Score:0

Presence of id_dsa file prevents ssh-copy-id from working

cn flag

I recently added a ~/.ssh/id_dsa file to my local machine (via ssh-keygen -t dsa). When I use ssh-copy-id to copy the key to another target, the ssh-copy-id command appears to succeed. The DSA key is present on the target (~/.ssh/authorized_keys).

However, ssh still prompts me for a password.

If I delete ~/.ssh/id_dsa* and run ssh-copy-id again, it copies the RSA key instead, and ssh does not prompt me for a password.

Is this expected, and if so, how do I fix it?

Ahmed avatar
us flag
Did you use a passphrase for your DSA key?
Vijay Prema avatar
jp flag
Try running ssh with `-v` option which will tell you exactly what key(s) it is trying etc.
lord_nimon avatar
cn flag
1) There is no passphrase on any of my keys. 2) ssh -v shows that it's using the DSA key.
lord_nimon avatar
cn flag
https://askubuntu.com/a/777397 might be the answer
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.