News for hackers. Stuff that matters.
Re:Tinyssh by k8sToGo on Sunday March 24, 2024 @06:20AM (#39806198)
What is the difference between this and dropbear ssh?
Re:Tinyssh by chasil on Sunday March 24, 2024 @06:34AM (#39806262)
This server is very restricted compared to dropbear.

-passwords are not allowed, only keys

-only a single AEAD cipher is supported, and a single elliptic curve for key exchange

-root cannot be locked out with this server

-the key restrictions available in OpenSSH are not supported

-the server does not use dynamic memory, and has a better security record than dropbear

Re:Tinyssh by themoonisachees on Sunday March 24, 2024 @06:25AM (#39806215)
I don't think there's much of one. The concept in itself isn't really useful, I've never seen someone go "you know the real problem with sshd? It's too bloated".

It is slightly useful to put in smaller devices that don't have much space but I think it still relies on top many linux facilities to be an appropriate fix for that too. Still, cool project.

Re:Tinyssh by dhon_ on Sunday March 24, 2024 @06:37AM (#39806278)
I suspect the average openssh-server user just uses it for remote terminal access and copying files. Reducing the attack surface by dropping features and outdated standards is certainly valuable.
Re:Tinyssh by maxcoder4 on Sunday March 24, 2024 @06:51AM (#39806342)
Dropbear ssh is very useful when you have a full disk encryption on a remote server and want to be able to decrypt it after a reboot.
Re:Tinyssh by Nextgrid on Sunday March 24, 2024 @07:15AM (#39806442)
There's technically no reason OpenSSHd can't also be used in this context. Maybe 2 decades ago there was a legitimate performance/disk space reason which is why Dropbear was preferred for this use case (and the convention remains to do this day), but nowadays the couple megabytes of difference in your initrd between using Dropbear and OpenSSH won't matter.
Re:Tinyssh by m45t3r on Sunday March 24, 2024 @09:34AM (#39807124)
> There's technically no reason OpenSSHd can't also be used in this context.

For initrd you generally prefer static binaries. Not saying that OpenSSHd doesn't build statically, but having less code and dependencies makes it easier to statically compile.

But yes, technically there is no reason to not use OpenSSHd, but in practice having a smaller and more self contained binary helps considering that you would want the bare minimum during initrd.

Re:Tinyssh by akerl_ on Sunday March 24, 2024 @09:45AM (#39807191)
What dependencies does openssh have?
Re:Tinyssh by mkj on Sunday March 24, 2024 @10:48AM (#39807561)
OpenSSL
Re:Tinyssh by 1oooqooq on Sunday March 24, 2024 @01:15PM (#39808558)
if you don't care for v1 and odd cyphers, --without-openssl
Re:Tinyssh by ThreeHopsAhead on Sunday March 24, 2024 @06:37AM (#39806277)
dropbear has the goal of being small and light on ressources while still providing featurefull ssh support.

tinyssh is small because it only implements a tiny subset of SSH that is needed for secure basic SSH connections. It only includes few crypto primitives excluding even RSA.

There is considerable overlap in the two and you can reach something similar to tinyssh by compiling dropbear with only few select features, but tinyssh aims to be as secure and attack surface minimized as possible out of the box.

Another notable difference:

> no dynamic memory allocation - TinySSH has all memory statically allocated (less than 1MB)

Re:Tinyssh by Columbo818 on Sunday March 24, 2024 @06:37AM (#39806274)
Dropbear claims to be RFC-compliant, but isnt. Proof here: https://www.cvedetails.com/cve/CVE-2021-36369/

TinySSH doesnt claim to be compliant, and isnt. Does less in exchange for a reduced attack surface.

Re:Tinyssh by mkj on Sunday March 24, 2024 @10:55AM (#39807613)
That CVE is a UI confusion issue in the client, I'm not sure exactly what bit the reporter thought was non-RFC compliant.
Re:Tinyssh by bjoli on Sunday March 24, 2024 @06:35AM (#39806270)
It is smaller and supports less features. Dropbear does password auth and x11 agent forwarding iirc.