Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

funky suckage with Mac OSX sshd/ssh #4

Open
h0lzi opened this issue Jan 7, 2015 · 12 comments
Open

funky suckage with Mac OSX sshd/ssh #4

h0lzi opened this issue Jan 7, 2015 · 12 comments

Comments

@h0lzi
Copy link

h0lzi commented Jan 7, 2015

OSX (at least Yosemite) ships with:
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
and it says it would support
[email protected],[email protected] (Man pages and ssh -v output if you don't configure anything)
But it does not 👎
If you add it to your .ssh/config you will get:
Bad SSH2 cipher spec '[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr'.

But whats more worse is if you connect form a client that does support [email protected],[email protected] to an Mac OSX sshd it will just explode and the error message is not very telling.

Guess would be that OSSLShim 0.9.8r just does not support any gcm. But why apple didn't patch it to at least not announce and execpt gcm mode I don't know.

Might be worth to mention.

@mochtu
Copy link

mochtu commented Jan 7, 2015

I wrote an article on how to update ssh on OSX. It should help you for outgoing connections, I didn't test sshd, but it should also work. Maybe you need to re-link the bin's in /usr/bin. Please let me know what you find, so I can put it in the article. https://mochtu.de/2015/01/07/updating-openssh-on-mac-os-x-10-10-yosemite/

@h0lzi
Copy link
Author

h0lzi commented Jan 7, 2015

yeah I know how to do that. Just thought I would mention it. So maybe it's worth to add it to the articel

@stribika
Copy link
Owner

stribika commented Jan 7, 2015

Actually GCM is no good because for some reason SSH doesn't encrypt the message size field when using GCM. Nothing wrong with GCM in general as far as I know. It's an SSH thing. I don't have OSX and I don't like recommending stuff I didn't try. I can add your link though.

@mochtu
Copy link

mochtu commented Jan 7, 2015

The old OpenSSH also complains about [email protected] at my system – so I recommend the update and also to stay up to date (in contrast of Apple's believes). If you find it useful, add the link, sure.

@nickdesaulniers
Copy link

@ftolead
Copy link

ftolead commented Jan 9, 2015

Confirmed openssh5.9 on ElementaryOS doesn't support ed25519, as well as openssh6.2 on my Macbook running Mavericks. Linux Mint 17.1 has openssh6.6 and supports ed25519.

@kevinburke
Copy link

I put OpenSSH_6.7p1, OpenSSL 0.9.8za 5 Jun 2014 on my Mac and tried the Ciphers line from your post, still getting a Bad SSH2 cipher spec message

@stribika-rdonly
Copy link

Can you post ssh -v output?

@vszakats
Copy link
Contributor

Yosemite's default OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 works with this line:
Ciphers aes256-ctr,aes192-ctr,aes128-ctr
Yosemite with Homebrew OpenSSH_6.7p1, OpenSSL 1.0.1l 15 Jan 2015 supports the full list:
Ciphers [email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr

@stribika stribika reopened this Jan 17, 2015
@kevinburke
Copy link

OpenSSH_6.7p1, OpenSSL 0.9.8za 5 Jun 2014
debug1: Reading configuration data /Users/kevin/.ssh/config
debug1: /Users/kevin/.ssh/config line 15: Applying options for *
/Users/kevin/.ssh/config line 16: Bad SSH2 cipher spec '[email protected],[email protected],[email protected],aes256-ctr,aes192-ctr,aes128-ctr'

@vszakats
Copy link
Contributor

@kevinburke Maybe you missed to brew install openssl before openssh?

@skull-squadron
Copy link

@kevinburke Something might be wrong / out-of-date with your brew environment because the current dupes ssh formula requires linking against brewed OpenSSL (see brew info homebrew/dupes/openssh after tapping dupes by running install and aborting the build) The linked OpenSSL there is the system one.

10.10.1 system versions

  • /usr/bin/ssh -V: OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
  • /usr/bin/openssl version: OpenSSL 0.9.8za 5 Jun 2014

brew versions

  • /usr/local/bin/ssh -V: OpenSSH_6.7p1, OpenSSL 1.0.1l 15 Jan 2015
  • /usr/local/opt/openssl/bin/openssl version: OpenSSL 1.0.1l 15 Jan 2015

This might help
brew uninstall --force openssl openssh; brew doctor && brew update && brew install homebrew/dupes/openssh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants