chiark / gitweb /
sshkeys: Change authorized_keys command to what we are going to impl
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 30 May 2021 20:20:09 +0000 (21:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 31 May 2021 23:14:40 +0000 (00:14 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
src/sshkeys.rs

index 635ae6854cdcbd3c2446bbe9653df86d6a65a18c..9827ee8076ae605040c5851cb3a55182bac58791 100644 (file)
@@ -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,