-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added generating OpenSSH private keys, as dropbearkey -Z openssh, wit…
…h make WRITEOPENSSHKEYS=1
- Loading branch information
Peter Szabo
committed
Oct 1, 2017
1 parent
ae9da53
commit 4bb002c
Showing
8 changed files
with
138 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,8 +11,10 @@ The most important improvements in pts-dropbear: | |
implementation is based on TweetNaCl v20140427. | ||
* Added environment variable propagation (similar to OpenSSH AcceptEnv, | ||
command-line flag -A) to Dropbear sshd. | ||
* Added option of autodetection and loading of OpenSSH hostkeys to Dropbear | ||
* Added autodetection and loading of OpenSSH hostkeys to Dropbear | ||
sshd (with `make OPENSSHHOSTKEYLOAD=1'). | ||
* Added flag to dropbearkey to generate private keys in OpenSSH format | ||
directly (dropbearkey -Z openssh, with `make WRITEOPENSSHKEYS=1'). | ||
* Improved some command-line flags (e.g. dropbear -E is always available). | ||
* Compilation instructions for pts-xstatic (statically linked i386 Linux | ||
binary). Binary size is 350456 bytes. | ||
|
@@ -32,7 +34,10 @@ How to generate an ssh-ed25519 server host key: | |
|
||
* Use this command: | ||
|
||
$ dropbearkey -t ed25519 -f dropbear_hostkey_ed25519 | ||
$ dropbearkey -Z openssh -t ed25519 -f dropbear_hostkey_ed25519 | ||
|
||
Please note that `-Z openssh' is optional. It creates the private key file | ||
in the OpenSSH format, for improved interoperability. | ||
|
||
* Alternatively, this command works if you have OpenSSH: | ||
|
||
|
@@ -48,21 +53,46 @@ How to generate an ssh-ed25519 server host key: | |
TODO: | ||
|
||
* Send patches to upstream Dropbear. | ||
* Add cipher [email protected] (for feature parity with | ||
tinyssh). | ||
* Add querying an ssh-agent to dbclient. (No need to write an ssh-agent, | ||
the Gnome, gpg and OpenSSH ssh-agent implementations are fine.) | ||
* Add flag to dropbearkey to generate OpenSSH private key format (with | ||
`make WRITEOPENSSHKEYS=1'), `-Z openssh'. | ||
* refactor: split keywrite.c (import_write(...)) out keyimport.c, to make | ||
the dropbear (not dropbearmulti) binary smaller. | ||
* --disable-wtmp in c.sh? Add at least a command-line flag. Is the stock | ||
Ubuntu 14.04 /var/log/wtmp compatible with xstatic uClibc wtmp format? | ||
|
||
FYI: | ||
|
||
* dropbearconvert (and import_read) ignores comments. | ||
* dropbearconvert (and import_read) ignores comments in keys. | ||
* dropbearkey creates private keys without comments (only public keys have comments). | ||
* OpenSSH `ssh -i' ignores comments in the private key file. | ||
* OpenSSH `ssh -i' ignores comments in the private key file. Good. | ||
* dropbear doesn't support user or host key passphrases. | ||
* dbclient cannot authenticate with an ssh-agent. | ||
* dropbear doesn't try to be smart and slow, e.g. by doing DNS lookups on | ||
the client IP address. | ||
* Dropbear binary size is smaller (353 kB for dropbearmulti linked with | ||
xstatic, containing dropbear, dbclient, dropbearkey, dropbearconvert, scp) | ||
than OpenSSH (836 kB for sshd, 791 kB, 380 kB for ssh-agent for ssh linked | ||
with xstatic, 7.3p1 without OpenSSL). | ||
* OpenSSH crypto operations are faster than in Dropbear. (Is this true? | ||
Benchmark!) | ||
* Dropbear 2017.75 supports these ciphers (with the default compiation flags): | ||
aes128-ctr, aes256-ctr, aes128-cbc, aes256-cbc, twofish256-cbc, | ||
twofish128-cbc, 3des-ctr, 3des-cbc, 3des. | ||
blowfish can also be enabled, but twofish is more efficient. | ||
* OpenSSH_5.3p1 supports these ciphers: (twofish is missing.) | ||
aes128-ctr, aes192-ctr, aes256-ctr, arcfour256, arcfour128, aes128-cbc, | ||
3des-cbc, blowfish-cbc, cast128-cbc, aes192-cbc, aes256-cbc, arcfour, | ||
[email protected]. | ||
* OpenSSH_7.2p2 in Ubuntu 14.04 supports these ciphers: (twofish is missing.) | ||
3des-cbc, aes128-cbc, aes128-ctr, [email protected], aes192-cbc | ||
aes192-ctr, aes256-cbc, aes256-ctr, [email protected], arcfour, | ||
arcfour128 arcfour256, [email protected], | ||
[email protected]. | ||
* OpenSSH_7.3p1 compiled without OpenSSL supports these ciphers: | ||
aes128-ctr, aes192-ctr, aes256-ctr, [email protected]. | ||
* tinyssh 20161101 (and the latest github on 2017-10-01) | ||
supports these ciphers: aes256-str, [email protected]. | ||
|
||
__END__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters