* Pulling from a linux box to a Solaris 9 OS
@ 2023-10-19 21:49 Daniel Santos
2023-10-20 0:33 ` brian m. carlson
0 siblings, 1 reply; 4+ messages in thread
From: Daniel Santos @ 2023-10-19 21:49 UTC (permalink / raw)
To: git
Hello,
I have a bare repo on a linux box. I can push and pull from a modern macOS X.
But I also have a Solaris 9 box with a checkout of that same repo. when I try to pull I get the messages:
bash-2.05$ git pull
command-line: line 0: Bad configuration option: SendEnv
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
The cause maybe the ‘old-ness’ of solaris software.
Is there any way to get around this ?
Thanks,
Regards
Daniel Santos
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Pulling from a linux box to a Solaris 9 OS
2023-10-19 21:49 Pulling from a linux box to a Solaris 9 OS Daniel Santos
@ 2023-10-20 0:33 ` brian m. carlson
2023-10-20 6:27 ` Jeff King
0 siblings, 1 reply; 4+ messages in thread
From: brian m. carlson @ 2023-10-20 0:33 UTC (permalink / raw)
To: Daniel Santos; +Cc: git
[-- Attachment #1: Type: text/plain, Size: 1199 bytes --]
On 2023-10-19 at 21:49:53, Daniel Santos wrote:
> Hello,
>
> I have a bare repo on a linux box. I can push and pull from a modern macOS X.
> But I also have a Solaris 9 box with a checkout of that same repo. when I try to pull I get the messages:
>
> bash-2.05$ git pull
> command-line: line 0: Bad configuration option: SendEnv
> fatal: Could not read from remote repository.
>
> Please make sure you have the correct access rights
> and the repository exists.
>
> The cause maybe the ‘old-ness’ of solaris software.
> Is there any way to get around this ?
By default, if the SSH binary is the default ("ssh"), Git assumes that
it's OpenSSH and sends certain options to enable protocol v2, including
-o SendEnv.
If you don't want that, you can set "ssh.variant" to "simple", in which
case Git will send only the username and the host, but not -p port, -4,
-6, or -o. If you do need a different port, then you're out of luck,
and will either have to install Putty (in which case, the ssh.variant
value would need to be "putty") or upgrade OpenSSH. Otherwise, the
simple value should work fine.
--
brian m. carlson (he/him or they/them)
Toronto, Ontario, CA
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 263 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Pulling from a linux box to a Solaris 9 OS
2023-10-20 0:33 ` brian m. carlson
@ 2023-10-20 6:27 ` Jeff King
2023-10-22 9:31 ` Daniel Santos
0 siblings, 1 reply; 4+ messages in thread
From: Jeff King @ 2023-10-20 6:27 UTC (permalink / raw)
To: brian m. carlson; +Cc: Daniel Santos, git
On Fri, Oct 20, 2023 at 12:33:50AM +0000, brian m. carlson wrote:
> By default, if the SSH binary is the default ("ssh"), Git assumes that
> it's OpenSSH and sends certain options to enable protocol v2, including
> -o SendEnv.
>
> If you don't want that, you can set "ssh.variant" to "simple", in which
> case Git will send only the username and the host, but not -p port, -4,
> -6, or -o. If you do need a different port, then you're out of luck,
> and will either have to install Putty (in which case, the ssh.variant
> value would need to be "putty") or upgrade OpenSSH. Otherwise, the
> simple value should work fine.
I think your suggestion is the most straight-forward one, but just in
case the "out of luck" part is a problem, you should also be able to
side-step the issue with:
git -c protocol.version=0 fetch ...
That would allow other features (assuming this older ssh version
supports them!) without triggering the SendEnv option.
-Peff
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Pulling from a linux box to a Solaris 9 OS
2023-10-20 6:27 ` Jeff King
@ 2023-10-22 9:31 ` Daniel Santos
0 siblings, 0 replies; 4+ messages in thread
From: Daniel Santos @ 2023-10-22 9:31 UTC (permalink / raw)
To: git
Hello,
I set the environment variable GIT_SSH_VARIANT and it pulled with no issues.
Thanks for the help
Regards
Daniel Santos
> On 20 Oct 2023, at 07:27, Jeff King <peff@peff.net> wrote:
>
> On Fri, Oct 20, 2023 at 12:33:50AM +0000, brian m. carlson wrote:
>
>> By default, if the SSH binary is the default ("ssh"), Git assumes that
>> it's OpenSSH and sends certain options to enable protocol v2, including
>> -o SendEnv.
>>
>> If you don't want that, you can set "ssh.variant" to "simple", in which
>> case Git will send only the username and the host, but not -p port, -4,
>> -6, or -o. If you do need a different port, then you're out of luck,
>> and will either have to install Putty (in which case, the ssh.variant
>> value would need to be "putty") or upgrade OpenSSH. Otherwise, the
>> simple value should work fine.
>
> I think your suggestion is the most straight-forward one, but just in
> case the "out of luck" part is a problem, you should also be able to
> side-step the issue with:
>
> git -c protocol.version=0 fetch ...
>
> That would allow other features (assuming this older ssh version
> supports them!) without triggering the SendEnv option.
>
> -Peff
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-10-22 9:31 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-19 21:49 Pulling from a linux box to a Solaris 9 OS Daniel Santos
2023-10-20 0:33 ` brian m. carlson
2023-10-20 6:27 ` Jeff King
2023-10-22 9:31 ` Daniel Santos
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).