DrayTek UK Users' Community Forum
Help, Advice and Solutions from DrayTek Users
SSH to 2862 from Linux
- John
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 2
24 Aug 2024 21:36 #103668
by John
SSH to 2862 from Linux was created by John
When I try a SSH connection to a 2862 router from various Linux versions, I get the error
"Unable to negotiate with 192.168.0.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1"
I guess this is because of the security associated with the key method offered.
Is it possible to upgrade the key method used on the router?
"Unable to negotiate with 192.168.0.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group1-sha1,diffie-hellman-group14-sha1"
I guess this is because of the security associated with the key method offered.
Is it possible to upgrade the key method used on the router?
Please Log in or Create an account to join the conversation.
- HodgesanDY
- Offline
- Member
Less
More
- Posts: 207
- Thank you received: 16
25 Aug 2024 16:08 - 25 Aug 2024 16:44 #103679
by HodgesanDY
Replied by HodgesanDY on topic SSH to 2862 from Linux
Hi John,
Try:
ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostKeyAlgorithms=+ssh-dss username@routerip
It will warn you about the DSA fingerprint. Say yes to continue and it will add that host to its list.
At this point it may just pause, forever, so ‘Ctrl+C’ it, to cancel the connection attempt and arrow-up to recall your last command and execute it again, this time it should connect straight away and ask you for the password.
Try:
ssh -o KexAlgorithms=+diffie-hellman-group1-sha1 -o HostKeyAlgorithms=+ssh-dss username@routerip
It will warn you about the DSA fingerprint. Say yes to continue and it will add that host to its list.
At this point it may just pause, forever, so ‘Ctrl+C’ it, to cancel the connection attempt and arrow-up to recall your last command and execute it again, this time it should connect straight away and ask you for the password.
Last edit: 25 Aug 2024 16:44 by HodgesanDY. Reason: To fix typo
Please Log in or Create an account to join the conversation.
- John
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 2
25 Aug 2024 16:42 #103680
by John
Replied by John on topic SSH to 2862 from Linux
Thanks for your reply
I'd tried that, but it didn't work either on both Debian and Apple.
Unsupported KEX algorithm "diffie-hellman-group1-shal"
command-line line 0: Bad SSH2 KexAlgorithms '+diffie-hellman-group1-shal'.
I'd tried that, but it didn't work either on both Debian and Apple.
Unsupported KEX algorithm "diffie-hellman-group1-shal"
command-line line 0: Bad SSH2 KexAlgorithms '+diffie-hellman-group1-shal'.
Please Log in or Create an account to join the conversation.
- HodgesanDY
- Offline
- Member
Less
More
- Posts: 207
- Thank you received: 16
25 Aug 2024 16:45 #103681
by HodgesanDY
Replied by HodgesanDY on topic SSH to 2862 from Linux
Sorry!
It was a typo, I have corrected the typo, try again…
It was a typo, I have corrected the typo, try again…
The following user(s) said Thank You: John
Please Log in or Create an account to join the conversation.
- John
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 27
- Thank you received: 2
25 Aug 2024 16:50 #103682
by John
Replied by John on topic SSH to 2862 from Linux
That worked! Thanks.
The following user(s) said Thank You: HodgesanDY
Please Log in or Create an account to join the conversation.
Moderators: Chris, Sami
Copyright © 2024 DrayTek