{"thread":{"id":"60404","subject":"Pulling from a linux box to a Solaris 9 OS","startedAt":"2023-10-19T21:49:58Z","lastAt":"2023-10-22T09:31:29Z","messageCount":4,"participants":["Daniel Santos","brian m. carlson","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"483531","messageId":"20A47898-41F6-4E94-822C-10509EC1E3B9@gmail.com","threadId":"60404","inReplyTo":null,"subject":"Pulling from a linux box to a Solaris 9 OS","fromName":"Daniel Santos","fromEmail":"daniel.dlds@gmail.com","sentAt":"2023-10-19T21:49:53Z","receivedAt":"2023-10-19T21:49:58Z","isPatch":false,"sender":{"key":"daniel.dlds@gmail.com","avatar":null},"body":"Hello,\n\nI have a bare repo on a linux box. I can push and pull from a modern macOS X.\nBut I also have a Solaris 9 box with a checkout of that same repo. when I try to pull I get the messages:\n\nbash-2.05$ git pull\ncommand-line: line 0: Bad configuration option: SendEnv\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.\n\nThe cause maybe the ‘old-ness’ of solaris software.\nIs there any way to get around this ?\n\nThanks,\nRegards\nDaniel Santos\n\n\n\n"},{"id":"483535","messageId":"ZTHK7o5LXvMB5EeJ@tapette.crustytoothpaste.net","threadId":"60404","inReplyTo":"20A47898-41F6-4E94-822C-10509EC1E3B9@gmail.com","subject":"Re: Pulling from a linux box to a Solaris 9 OS","fromName":"brian m. carlson","fromEmail":"sandals@crustytoothpaste.net","sentAt":"2023-10-20T00:33:50Z","receivedAt":"2023-10-20T00:33:54Z","isPatch":false,"sender":{"key":"sandals@crustytoothpaste.net","avatar":"https://avatars.githubusercontent.com/u/497054?v=4"},"body":"On 2023-10-19 at 21:49:53, Daniel Santos wrote:\n> Hello,\n> \n> I have a bare repo on a linux box. I can push and pull from a modern macOS X.\n> But I also have a Solaris 9 box with a checkout of that same repo. when I try to pull I get the messages:\n> \n> bash-2.05$ git pull\n> command-line: line 0: Bad configuration option: SendEnv\n> fatal: Could not read from remote repository.\n> \n> Please make sure you have the correct access rights\n> and the repository exists.\n> \n> The cause maybe the ‘old-ness’ of solaris software.\n> Is there any way to get around this ?\n\nBy default, if the SSH binary is the default (\"ssh\"), Git assumes that\nit's OpenSSH and sends certain options to enable protocol v2, including\n-o SendEnv.\n\nIf you don't want that, you can set \"ssh.variant\" to \"simple\", in which\ncase Git will send only the username and the host, but not -p port, -4,\n-6, or -o.  If you do need a different port, then you're out of luck,\nand will either have to install Putty (in which case, the ssh.variant\nvalue would need to be \"putty\") or upgrade OpenSSH.  Otherwise, the\nsimple value should work fine.\n-- \nbrian m. carlson (he/him or they/them)\nToronto, Ontario, CA\n"},{"id":"483541","messageId":"20231020062738.GA1642714@coredump.intra.peff.net","threadId":"60404","inReplyTo":"ZTHK7o5LXvMB5EeJ@tapette.crustytoothpaste.net","subject":"Re: Pulling from a linux box to a Solaris 9 OS","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2023-10-20T06:27:38Z","receivedAt":"2023-10-20T06:27:41Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Fri, Oct 20, 2023 at 12:33:50AM +0000, brian m. carlson wrote:\n\n> By default, if the SSH binary is the default (\"ssh\"), Git assumes that\n> it's OpenSSH and sends certain options to enable protocol v2, including\n> -o SendEnv.\n> \n> If you don't want that, you can set \"ssh.variant\" to \"simple\", in which\n> case Git will send only the username and the host, but not -p port, -4,\n> -6, or -o.  If you do need a different port, then you're out of luck,\n> and will either have to install Putty (in which case, the ssh.variant\n> value would need to be \"putty\") or upgrade OpenSSH.  Otherwise, the\n> simple value should work fine.\n\nI think your suggestion is the most straight-forward one, but just in\ncase the \"out of luck\" part is a problem, you should also be able to\nside-step the issue with:\n\n  git -c protocol.version=0 fetch ...\n\nThat would allow other features (assuming this older ssh version\nsupports them!) without triggering the SendEnv option.\n\n-Peff\n"},{"id":"483632","messageId":"CC739286-AEFC-4F97-A86F-7A129159F592@gmail.com","threadId":"60404","inReplyTo":"20231020062738.GA1642714@coredump.intra.peff.net","subject":"Re: Pulling from a linux box to a Solaris 9 OS","fromName":"Daniel Santos","fromEmail":"daniel.dlds@gmail.com","sentAt":"2023-10-22T09:31:24Z","receivedAt":"2023-10-22T09:31:29Z","isPatch":false,"sender":{"key":"daniel.dlds@gmail.com","avatar":null},"body":"Hello,\n\nI set the environment variable GIT_SSH_VARIANT and it pulled with no issues.\nThanks for the help\n\nRegards\nDaniel Santos\n\n\n\n> On 20 Oct 2023, at 07:27, Jeff King <peff@peff.net> wrote:\n> \n> On Fri, Oct 20, 2023 at 12:33:50AM +0000, brian m. carlson wrote:\n> \n>> By default, if the SSH binary is the default (\"ssh\"), Git assumes that\n>> it's OpenSSH and sends certain options to enable protocol v2, including\n>> -o SendEnv.\n>> \n>> If you don't want that, you can set \"ssh.variant\" to \"simple\", in which\n>> case Git will send only the username and the host, but not -p port, -4,\n>> -6, or -o.  If you do need a different port, then you're out of luck,\n>> and will either have to install Putty (in which case, the ssh.variant\n>> value would need to be \"putty\") or upgrade OpenSSH.  Otherwise, the\n>> simple value should work fine.\n> \n> I think your suggestion is the most straight-forward one, but just in\n> case the \"out of luck\" part is a problem, you should also be able to\n> side-step the issue with:\n> \n>  git -c protocol.version=0 fetch ...\n> \n> That would allow other features (assuming this older ssh version\n> supports them!) without triggering the SendEnv option.\n> \n> -Peff\n\n"}]}