Skip to content

calcterm 0.6-alpha

Pre-release
Pre-release

Choose a tag to compare

@ctorkildson-netizen ctorkildson-netizen released this 28 Nov 21:48
bec2101

calcterm 0.6-alpha adds SSH: encrypted logins to Linux, Windows or anything else with an SSH server, over the Pico 2 W's Wi-Fi.

SSH

  • In the host list (Alt+F2), an address with a user name in front is SSH, as with the ssh command: chris@192.168.1.50, on port 22 unless given (chris@host:2222). Plain addresses are still telnet.
  • Host keys are checked. The first time, calcterm shows the host's key fingerprint (SHA256:..., as OpenSSH shows it) and asks whether to trust it, then remembers it in /calcterm/known_hosts. After that, a changed key stops the connection with a warning.
  • The password is asked for each time (hidden, three tries), and never stored.
  • Logging in takes well under a second on a home network. The terminal is the screen's size and follows Alt+F1's 64/80 columns, so calcsize isn't needed.
  • Built on picocalc-extras' new ssh/ (libssh2 1.11.1 with Mbed TLS). Hosts that offer only ed25519 keys can't be reached yet, and logging in with a key is to follow.

Tried against Ubuntu's OpenSSH and Windows 11's own OpenSSH server (Settings, or Start-Service sshd in an admin PowerShell).

Fixed

  • Telnet and SSH stalling for seconds at a time when a paired Bluetooth keyboard was switched off. calcterm kept calling the keyboard, and each call held the radio, which Wi-Fi shares, for about five seconds. While Wi-Fi is on, it now waits for the keyboard to reconnect instead (press a key on it).
  • The sign-on line was cut short when calcterm started without its settings file.

Under the hood

  • Networking now comes from picocalc-extras' net/ (v2.6) instead of calcterm's own copy, the same code calcftp uses.

Copy calcterm.uf2 to the card's pico2-apps folder. It needs a Pico 2 W for telnet and SSH; serial works on any PicoCalc.