I'm facing this issue in my wsl 2.0 Arch. After I update curl via pacman this error shows up.
pacman: symbol lookup error: /usr/lib/libcurl.so.4: undefined symbol: libssh2_session_set_read_timeout
Something similar was showing when try to use curl but i manage remove curl but error stayed.
[TESTED SOLUTION]
I got the same problem and fixed it as the previous answer but i will explain it more:
1.Download the libssh2 from here: https://archlinuxarm.org/packages/aarch64/libssh2
BE SURE TO CHANGE
aarch64IN THE ABOVE URL TO YOUR CPU ARCH2.unzip the zip you got from it and go to lib directory where you extracted the zip and move the
libssh2.so.1.0.1to /usr/lib with root permissions3.Test it and it will work!