Replies: 3 comments 3 replies
-
You can pass in a list of key exchange algorithm names in the |
Beta Was this translation helpful? Give feedback.
-
Yes - if you know the exact algorithms you want to support and don't want AsyncSSH to try to negotiate anything stronger, listing just specific algorithms like that should work fine. If you want a single call to be able to connect to a mixture of old & new SSH servers, though, they may not all support the same set of algorithms. In that case, you may need to list more than one algorithm to properly cover all of the servers, or you may want to start with the default algorithms and add things to the end of the list so that modern servers will always use the strongest algorithm available while still supporting older servers. |
Beta Was this translation helpful? Give feedback.
-
I'm not familiar with that specific device, but from other reports here it seems like some devices support only "shell" sessions to be opened via SSH, and not "exec" sessions where you pass in a command to run. This is a bit unfortunate, as "shell" sessions are a lot messier to interact with than being able to tell it to run a single command and get a clean EOF when that command finishes. Using a shell session means you have to detect yourself when the command ends by looking for prompt output, and also that you may have to deal with things like filtering out the echoing of the command if the device forces you to request a PTY. |
Beta Was this translation helpful? Give feedback.
-
Hello,
I'm a medior network engineer and I'm currently writing code to automate some 'config' commands through ssh.
My issue is that network devices mostly uses old SSH key exchange and encryption methods.
On the docs I see information like:
The following key exchange algorithms are supported by AsyncSSH, but disabled by default:
gss-gex-sha1
gss-group1-sha1
diffie-hellman-group-exchange-sha1
diffie-hellman-group1-sha1
rsa1024-sha1
My question is if someone knows how to 'enable' and use these 'disabled by default' algorithms.
Thank you for your help in advance
Beta Was this translation helpful? Give feedback.
All reactions