diff options
author | Joey Hess <joey@kitenet.net> | 2014-04-02 15:30:10 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2014-04-02 15:30:10 -0400 |
commit | 819f5dca98dc8e82e4376f5bad2fbc8bb89d66bc (patch) | |
tree | fafb649af2e3a94a047b58d84d8583f513277857 | |
parent | 609c61849dbdd2ad27ccbe43ba2deb12c9b44f12 (diff) |
assistant: Adjust ssh authorized keys line generated in local pairing or for a remote ssh server to set environment variables in an alternative way that works with the non-POSIX fix shell, as well as POSIX shells.
-rw-r--r-- | Assistant/Ssh.hs | 2 | ||||
-rw-r--r-- | debian/changelog | 4 | ||||
-rw-r--r-- | doc/bugs/issues_with_non-posix_compatible_shells.mdwn | 7 |
3 files changed, 12 insertions, 1 deletions
diff --git a/Assistant/Ssh.hs b/Assistant/Ssh.hs index acb2fc11c..4dd32f7d9 100644 --- a/Assistant/Ssh.hs +++ b/Assistant/Ssh.hs @@ -197,7 +197,7 @@ authorizedKeysLine gitannexshellonly dir pubkey - long perl script. -} | otherwise = pubkey where - limitcommand = "command=\"GIT_ANNEX_SHELL_DIRECTORY="++shellEscape dir++" ~/.ssh/git-annex-shell\",no-agent-forwarding,no-port-forwarding,no-X11-forwarding,no-pty " + limitcommand = "command=\"env GIT_ANNEX_SHELL_DIRECTORY="++shellEscape dir++" ~/.ssh/git-annex-shell\",no-agent-forwarding,no-port-forwarding,no-X11-forwarding,no-pty " {- Generates a ssh key pair. -} genSshKeyPair :: IO SshKeyPair diff --git a/debian/changelog b/debian/changelog index 70d90dd6d..7148dbe59 100644 --- a/debian/changelog +++ b/debian/changelog @@ -28,6 +28,10 @@ git-annex (5.20140321) UNRELEASED; urgency=medium to add the missing settings. For details, see http://git-annex.branchable.com/bugs/problems_with_glacier/ * Added required content configuration. + * assistant: Adjust ssh authorized keys line generated in local pairing + or for a remote ssh server to set environment variables in an + alternative way that works with the non-POSIX fix shell, as well + as POSIX shells. -- Joey Hess <joeyh@debian.org> Fri, 21 Mar 2014 14:08:41 -0400 diff --git a/doc/bugs/issues_with_non-posix_compatible_shells.mdwn b/doc/bugs/issues_with_non-posix_compatible_shells.mdwn index 4797fb569..34fb72a1c 100644 --- a/doc/bugs/issues_with_non-posix_compatible_shells.mdwn +++ b/doc/bugs/issues_with_non-posix_compatible_shells.mdwn @@ -32,3 +32,10 @@ remote types: git gcrypt S3 bup directory rsync web webdav tahoe glacier hook ex # End of transcript or log. """]] + +> [[fixed|done]] so +> +> I have not tried to make the assistant go back and fix up existing +> `authorized_keys` lines. So if someone had been using a posix shell and +> switched to fish, they'll hit this and need to fix it themselves. I judge +> this is pretty small number of users. --[[Joey]] |