From: Ian Jackson Date: Tue, 1 Jun 2021 20:48:45 +0000 (+0100) Subject: sshkeys: Fix formatting of ssh authorized_keys files X-Git-Tag: otter-0.7.0~126 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=b60e35d216ac9b088f8fd91fcbc97c6195c08f30;p=otter.git sshkeys: Fix formatting of ssh authorized_keys files Signed-off-by: Ian Jackson --- diff --git a/src/sshkeys.rs b/src/sshkeys.rs index c1e07314..ebff7b91 100644 --- a/src/sshkeys.rs +++ b/src/sshkeys.rs @@ -449,8 +449,8 @@ impl Global { for (id, key) in &self.keys { let fp = match key.fp { Some(Ok(ref fp)) => fp, _ => continue }; if key.refcount == 0 { continue } - writeln!(w, r#"{},command="{} mgmtchannel-proxy --restrict-ssh {}:{}" \ - {} {}:{}"#, + writeln!(w, + r#"{},command="{} mgmtchannel-proxy --restrict-ssh {}:{}" {} {}:{}"#, RESTRICTIONS, &config().ssh_proxy_bin, id, key.nonce, &key.data,