Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

Something is wrong with the way my Mac generates ssh keys. This has been the second time where I've created a key with ssh-keygen -t rsa. When I paste the created id_rsa.pub to use in a connecting service, it does not work correctly. But when I create it on another machine the same way, the public key works.

My question is how do I uninstall and re-install the key generation tool for Mac? And mac ports is installed if that matters.

share|improve this question
    
By "paste the created id_rsa.pub", what do you mean? You run cat id_rsa.pub in terminal, highlight that, and paste it into the authorized_keys file on the server? –  cjc Jun 6 '12 at 20:24
    
What do you mean by .. it does not work correctly? Are you getting any errors from ssh while connecting? Post them so we can help. –  Herman Torjussen Jun 6 '12 at 22:58
    
No, no errors. But whenever I generate a key on that server, and take the .pub and place it on another server, such as GIT, it never works. I've generated with passwords and without, same result and only when I generate it on my mac. –  Devin Dixon Jun 6 '12 at 23:43
    
can u pls run 'ssh -V' on both the machines and put the output? Second can you pls tell which machines (OS, version etc) are involved? And which machine-2-machine it works? –  havexz Jun 7 '12 at 2:44
2  
Use ssh-copy-id instead of copy/pasting the existing key. Have a look at github.com/beautifulcode/ssh-copy-id-for-OSX –  Ulrich Dangel Jun 7 '12 at 3:00

1 Answer 1

I wouldn't attempt to uninstall the ssh binaries packaged with OSX, it is asking for trouble. You can use macports or similar to install a side-by-side version in /usr/local/ or /opt/ and run that version instead.

However I do not suspect the OSX binary to be the problem.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.