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 /Assistant | |
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.
Diffstat (limited to 'Assistant')
-rw-r--r-- | Assistant/Ssh.hs | 2 |
1 files changed, 1 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 |