Clean up SSH public key output text
This commit is contained in:
parent
c275bfc7dd
commit
34b1be073a
2 changed files with 2 additions and 2 deletions
|
@ -205,7 +205,7 @@ OpenPGP card ABCD:01234567
|
||||||
Authentication key fingerprint:
|
Authentication key fingerprint:
|
||||||
59A5CD3EA88F8707D887EAAE13545F404E11BE1C
|
59A5CD3EA88F8707D887EAAE13545F404E11BE1C
|
||||||
|
|
||||||
Authentication key as ssh public key:
|
SSH public key:
|
||||||
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII2dcYBqMCamidT5MpE3Cl3MIKcYMBekGXbK2aaN6JaH opgpcard:ABCD:01234567
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAII2dcYBqMCamidT5MpE3Cl3MIKcYMBekGXbK2aaN6JaH opgpcard:ABCD:01234567
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -600,7 +600,7 @@ fn print_ssh(ident: Option<String>) -> Result<()> {
|
||||||
if let Ok(pkm) = open.public_key(KeyType::Authentication) {
|
if let Ok(pkm) = open.public_key(KeyType::Authentication) {
|
||||||
if let Ok(ssh) = util::get_ssh_pubkey_string(&pkm, ident) {
|
if let Ok(ssh) = util::get_ssh_pubkey_string(&pkm, ident) {
|
||||||
println!();
|
println!();
|
||||||
println!("Authentication key as ssh public key:\n{}", ssh);
|
println!("SSH public key:\n{}", ssh);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue