← Electerm Blog

Choose SSH algorithms for a router in Electerm

2026-12-02
sshroutersbookmarkstroubleshooting

An older router can answer on port 22 and still close the connection before you get a password prompt. During the SSH handshake, Electerm and the router have to agree on how to protect the session. An error such as no matching C->S cipher means they couldn't agree on a cipher for traffic from the client to the server.

You can now choose which algorithms Electerm offers for an individual SSH bookmark. Edit the bookmark and open Advanced. Each of the five fields starts at Default, so you can change just the one your device needs.

Field What it controls
Key exchange (KEX) How the client and server establish the shared secret used to derive session keys.
Host key Which signature algorithms the server can use to prove its identity during the handshake.
Cipher How SSH encrypts session traffic, including commands and their output.
MAC How SSH detects changes to packets when the cipher requires a separate message authentication code.
Compression Whether SSH compresses data before encryption and which method it uses. The none option disables compression.

Set a cipher for one router

Suppose the connection reports a cipher mismatch and the router's firmware guide lists aes128-cbc as its only cipher.

  1. Edit the router's SSH bookmark, open Advanced, and expand Cipher by clicking Default.
  2. Find aes128-cbc in the supported list and check it. Leave the stronger ciphers above it. Electerm offers the checked algorithms in order, so it can prefer a stronger cipher if a future firmware update adds one. Use the arrows or drag a row to change its position.
  3. Click Save and reconnect using that bookmark. The cipher preference applies only to connections opened with that bookmark.

If your administrator gives you an ordered list, open Text editor in the relevant field. Enter the algorithm names separated by commas or new lines, then click Apply and save the bookmark. The list you enter replaces the selection for that field.

After a firmware upgrade, you can try the defaults again. Expand Cipher, click Reset, save the bookmark, and reconnect.