From: Ian Jackson Date: Sun, 30 May 2021 20:20:09 +0000 (+0100) Subject: sshkeys: Change authorized_keys command to what we are going to impl X-Git-Tag: otter-0.7.0~180 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=67abe73a9467648c994a036a99be50e79066594d;p=otter.git sshkeys: Change authorized_keys command to what we are going to impl Signed-off-by: Ian Jackson --- diff --git a/src/sshkeys.rs b/src/sshkeys.rs index 635ae685..9827ee80 100644 --- a/src/sshkeys.rs +++ b/src/sshkeys.rs @@ -410,7 +410,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="{} --ssh-proxy {} {}" {} {}:{}"#, + writeln!(w, r#"{},command="{} mgmtchannel-proxy --restrict-ssh {}:{}" \ + {} {}:{}"#, RESTRICTIONS, &config().ssh_proxy_bin, id, key.nonce, &key.data,