#ssh

russh

A client and server SSH library

15 releases

0.34.0-beta.16 Sep 14, 2022
0.34.0-beta.15 Sep 5, 2022
0.34.0-beta.12 Aug 21, 2022
0.34.0-beta.5 Jun 18, 2022
0.34.0-beta.2 Mar 19, 2022

#157 in Cryptography

Download history 57/week @ 2022-06-08 154/week @ 2022-06-15 74/week @ 2022-06-22 61/week @ 2022-06-29 86/week @ 2022-07-06 69/week @ 2022-07-13 127/week @ 2022-07-20 161/week @ 2022-07-27 200/week @ 2022-08-03 152/week @ 2022-08-10 227/week @ 2022-08-17 68/week @ 2022-08-24 97/week @ 2022-08-31 108/week @ 2022-09-07 301/week @ 2022-09-14 100/week @ 2022-09-21

611 downloads per month
Used in async-ssh2-tokio

Apache-2.0

365KB
8K SLoC

Russh

Rust All Contributors

Async (tokio) SSH2 client and server implementation.

This is a fork of Thrussh by Pierre-Étienne Meunier which adds:

✨ = added in this fork

  • More safety guarantees ✨
  • forward-tcpip (remote port forwarding) ✨
  • Ciphers:
    • chacha20-poly1305@openssh.com
    • aes256-gcm@openssh.com
    • aes256-ctr
    • aes192-ctr
    • aes128-ctr
  • Key exchanges:
    • curve25519-sha256@libssh.org
    • diffie-hellman-group1-sha1
    • diffie-hellman-group14-sha1
    • diffie-hellman-group14-sha256
  • MACs:
    • hmac-sha1
    • hmac-sha2-256
    • hmac-sha2-512
    • hmac-sha1-etm@openssh.com
    • hmac-sha2-256-etm@openssh.com
    • hmac-sha2-512-etm@openssh.com
  • Host keys:
    • ssh-ed25519
    • rsa-sha2-256
    • rsa-sha2-512
    • ssh-rsa
  • Dependency updates
  • Handle openssh sshd keepalive channel requests ✨

Safety

  • deny(clippy::unwrap_used)
  • deny(clippy::expect_used)
  • deny(clippy::indexing_slicing)
  • deny(clippy::panic)
  • Exceptions are checked manually

Panics

  • When the Rust allocator fails to allocate memory during a CryptoVec being resized.

Unsafe code

  • cryptovec uses unsafe for faster copying, initialization and binding to native API.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Mihir Samdarshi

📖

Connor Peet

💻

KVZN

💻

Adrian Müller (DTT)

💻

Simone Margaritelli

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Dependencies

~8–14MB
~251K SLoC