summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/PROTOCOL
diff options
context:
space:
mode:
authorDamien Miller <djm@cvs.openbsd.org>2022-08-12 05:20:29 +0000
committerDamien Miller <djm@cvs.openbsd.org>2022-08-12 05:20:29 +0000
commit5aa261b58ceefb913319ed24cf5c0e3397b34046 (patch)
treef25b981955c438dedae5f927719fed21db394243 /usr.bin/ssh/PROTOCOL
parent2db5432b76dd85d8a5e5753e5ddba94cea9744db (diff)
sftp-server: support home-directory request
Add support to the sftp-server for the home-directory extension defined in draft-ietf-secsh-filexfer-extensions-00. This overlaps a bit with the existing expand-path@openssh.com, but uses a more official protocol name, and so is a bit more likely to be implemented by non-OpenSSH clients. From Mike Frysinger, ok dtucker@
Diffstat (limited to 'usr.bin/ssh/PROTOCOL')
-rw-r--r--usr.bin/ssh/PROTOCOL22
1 files changed, 21 insertions, 1 deletions
diff --git a/usr.bin/ssh/PROTOCOL b/usr.bin/ssh/PROTOCOL
index 424ae5c7e80..f27073d24dc 100644
--- a/usr.bin/ssh/PROTOCOL
+++ b/usr.bin/ssh/PROTOCOL
@@ -615,6 +615,26 @@ This request is identical to the "copy-data" request documented in:
https://tools.ietf.org/html/draft-ietf-secsh-filexfer-extensions-00#section-7
+4.11. sftp: Extension request "home-directory"
+
+This request asks the server to expand the specified user's home directory.
+An empty username implies the current user. This can be used by the client
+to expand ~/ type paths locally.
+
+ byte SSH_FXP_EXTENDED
+ uint32 id
+ string "home-directory"
+ string username
+
+This extension is advertised in the SSH_FXP_VERSION hello with version
+"1".
+
+This provides similar information as the "expand-path@openssh.com" extension.
+
+This request is identical to the "home-directory" request documented in:
+
+https://datatracker.ietf.org/doc/html/draft-ietf-secsh-filexfer-extensions-00#section-5
+
5. Miscellaneous changes
5.1 Public key format
@@ -651,4 +671,4 @@ master instance and later clients.
OpenSSH extends the usual agent protocol. These changes are documented
in the PROTOCOL.agent file.
-$OpenBSD: PROTOCOL,v 1.45 2022/04/08 05:43:39 dtucker Exp $
+$OpenBSD: PROTOCOL,v 1.46 2022/08/12 05:20:28 djm Exp $