chiark
/
gitweb
/
~ianmdlvl
/
otter.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2372645
)
sshkeys: Change authorized_keys command to what we are going to impl
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Sun, 30 May 2021 20:20:09 +0000
(21:20 +0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/src/sshkeys.rs
b/src/sshkeys.rs
index 635ae6854cdcbd3c2446bbe9653df86d6a65a18c..9827ee8076ae605040c5851cb3a55182bac58791 100644
(file)
--- 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,