From 5fccd04a5dc88f88a17b37edeed9d21df7c32897 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Mon, 4 Mar 2013 23:36:07 -0400 Subject: Run ssh with -T to avoid tty allocation and any login scripts that may do undesired things with it. --- Annex/Ssh.hs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Annex') diff --git a/Annex/Ssh.hs b/Annex/Ssh.hs index d48038f97..a8bd1f7b6 100644 --- a/Annex/Ssh.hs +++ b/Annex/Ssh.hs @@ -33,7 +33,8 @@ sshParams (host, port) opts = go =<< sshInfo (host, port) liftIO $ createDirectoryIfMissing True $ parentDir socketfile lockFile $ socket2lock socketfile ret params - ret ps = return $ ps ++ opts ++ portParams port ++ [Param host] + ret ps = return $ ps ++ opts ++ portParams port ++ + [Param "-T", Param host] -- If the lock pool is empty, this is the first ssh of this -- run. There could be stale ssh connections hanging around -- from a previous git-annex run that was interrupted. -- cgit v1.2.3