Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document SSH user certificate authentication #530

Merged
merged 8 commits into from
Jun 17, 2024
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
_build/
_build/
bin
lib
lib64
pyvenv.cfg
33 changes: 25 additions & 8 deletions protocols/sftp/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,21 @@ PuTTY private keys (`.ppk`) are supported for `rsa` key types. `ed25519` is not

#### OpenSSH Key Format Interoperability

OpenSSH private keys of type `rsa`, `dsa`, `ecdsa` and `ed25519` (in OpenSSL`PEM` format) are supported. The new OpenSSH format (`openssh-key-v1`) is only supported for `ecdsa` and `ed25519`.
OpenSSH private keys of type `rsa`, `dsa`, `ecdsa` and `ed25519` (in OpenSSL `PEM` format) are supported. The new OpenSSH format (`openssh-key-v1`) is only supported for `ecdsa` and `ed25519`.

#### OpenSSH User Certificate Authentication

:::{important}
* Cyberduck [8.9.0](https://cyberduck.io/changelog/) or later required
* Mountain Duck [4.16.0](https://mountainduck.io/changelog/) or later required

Applies to SSH servers, which are configured with `TrustedUserCAKeys`, refer to your software vendor for configuration.
AliveDevil marked this conversation as resolved.
Show resolved Hide resolved
:::

Authentication using User CA signed private keys is supported, as long as both files (the private key, and the certificate file) are present at the same location.
The certificate file has to be suffixed by either "-cert.pub" or ".pub" to be eligible for authentication. The OpenSSH configuration directive `CertificateFile` is not used.
dkocher marked this conversation as resolved.
Show resolved Hide resolved

Pay attention to the server configuration and `PubkeyAcceptedAlgorithms`, which private key algorithms are allowed
AliveDevil marked this conversation as resolved.
Show resolved Hide resolved
AliveDevil marked this conversation as resolved.
Show resolved Hide resolved

#### Configure Public Key Authentication

Expand All @@ -110,11 +124,6 @@ OpenSSH private keys of type `rsa`, `dsa`, `ecdsa` and `ed25519` (in OpenSSL`PEM
```
3. In the Connection Dialog or the Bookmark editor in Cyberduck select *Use Public Key Authentication* and select the private key in your `.ssh` directory.


#### CA signed SSH Certificate Interoperability

*Certification Authority (CA)* sigend SSH certificates are supported for keys of type `rsa`, `dsa`, `ecdsa`, and `ed25519`.

#### Public Key Authentication Using SSH Agent
When connecting to a SSH server, Cyberduck will lookup matching private keys from the SSH agent when attempting to authenticate with the server if no password is available and no explicit private key to use is configured in the bookmark.

Expand Down Expand Up @@ -331,15 +340,23 @@ You can set Cyberduck or a third-party application as the default application (p

### Signatures

`ssh-rsa`, `ssh-dss`, `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, `ecdsa-sha2-nistp521`, `ssh-ed25519`
`ssh-rsa`, `ssh-dss`, `ecdsa-sha2-nistp256`, `ecdsa-sha2-nistp384`, `ecdsa-sha2-nistp521`, `ssh-ed25519`, `rsa-sha2-256`, `rsa-sha2-512`

With Cyberduck 8.9 and Mountain Duck 4.16, support for
AliveDevil marked this conversation as resolved.
Show resolved Hide resolved
- `[email protected]`
- `[email protected]`
- `[email protected]`
- `[email protected]`
- `[email protected]`
- `[email protected]`
AliveDevil marked this conversation as resolved.
Show resolved Hide resolved

### Compression

Compression with `zlib` and `[email protected]` is supported.

### Private Key Files

`pkcs5`, `pkcs8`, `openssh-key-v1`, `[email protected]`, `[email protected]`
`pkcs5`, `pkcs8`, `openssh-key-v1`

## Incompatibilities

Expand Down
Loading