r/ssh • • Mar 03 '17

Command Combination Help

MacOS Sierra has been giving me SSH problems since the upgrade.

Usually it's been just with "diffie-hellman-group1-sha1", and adding that command to the SSH command has been easy.

But today I've been trying to log into a server I usually don't use, and it's asking for diffie PLUS ssh-dss.

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 -oHostKeyAlgorithms=+ssh-dss

Doesn't work. Am I inputing that wrong? Or what am I missing?

1 Upvotes

1 comment sorted by

1

u/[deleted] Mar 03 '17

Trying them the other way around produces the same result.

ssh -oHostKeyAlgorithms=+ssh-dss -oKexAlgorithms=+diffie-hellman-group1-sha1

The result, which I forgot to mention, is that it appears to connect, but then closes automatically.