Answer the question
In order to leave comments, you need to log in
Why doesn't git work over ssh?
Good day, great gurus and pros in their field. Need your advice and help if possible.
There is a server running windows server 2012. I need to put git on it. So that I can connect somehow, after reading a lot of material, I decided to install bitvise ssh installed git, set up a folder, installed ssh, created a virtual user, but at the moment when I try to clone the folder to my PC from the server through the guide, it requests access, I enter my username and password and it immediately disconnects me.
At the same time on the server in the logs:
<event seq="116" time="2017-03-24 10:42:42.672274 +0200" app="BvSshServer 7.28" name="I_CONNECT_ACCEPTED" desc="Connection accepted.">
<session id="1018" service="SSH" remoteAddress="194.44.93.243:63812"/>
<parameters addressRule="AnyIP" listenAddress="194.247.13.189:22"/>
</event>
<event seq="117" time="2017-03-24 10:42:42.675383 +0200" app="BvSshServer 7.28" name="I_CONNECT_VERSION_RECEIVED" desc="Client version string received.">
<session id="1018" service="SSH" remoteAddress="194.44.93.243:63812"/>
<parameters clientVersion="SSH-2.0-OpenSSH_7.3"/>
</event>
<event seq="118" time="2017-03-24 10:42:42.679039 +0200" app="BvSshServer 7.28" name="I_SESSION_KEY_EXCHANGE_ALGORITHMS" desc="Key exchange algorithms.">
<session id="1018" service="SSH" remoteAddress="194.44.93.243:63812"/>
<parameters kexAlg="[email protected]" cipherAlgIn="aes128-ctr" cipherAlgOut="aes128-ctr" macAlgIn="hmac-sha2-256" macAlgOut="hmac-sha2-256" comprAlgIn="none" comprAlgOut="none"/>
</event>
<event seq="119" time="2017-03-24 10:42:46.244485 +0200" app="BvSshServer 7.28" name="I_LOGON_AUTH_SUCCEEDED" desc="User authentication succeeded.">
<session id="1018" service="SSH" remoteAddress="194.44.93.243:63812" virtualAccount="Dima" windowsAccount="WEB461\BvSsh_VirtualUsers"/>
<authentication attemptNr="1" userName="Dima" method="password"/>
<parameters accountSettings="Dima" groupSettings="Virtual Users" tokenType="LogonUser" tokenLogonType="Network"/>
</event>
<event seq="120" time="2017-03-24 10:42:46.256257 +0200" app="BvSshServer 7.28" name="I_CHANNEL_SESSION_OPENED" desc="Session channel opened.">
<session id="1018" service="SSH" remoteAddress="194.44.93.243:63812" virtualAccount="Dima" windowsAccount="WEB461\BvSsh_VirtualUsers"/>
<channel type="session" id="1"/>
</event>
<event seq="121" time="2017-03-24 10:42:46.304586 +0200" app="BvSshServer 7.28" name="W_EXECS_INITIAL_DIRECTORY_SET_ERROR" desc="Error changing to initial directory.">
<session id="1018" service="SSH" remoteAddress="194.44.93.243:63812" virtualAccount="Dima" windowsAccount="WEB461\BvSsh_VirtualUsers"/>
<channel type="session" id="1"/>
<parameters initDir="C:\Path\To\Git\Bin"/>
<error type="WinApi" operation="SetCurrentDirectory()" code="3" message="Системе не удается найти указанный путь."/>
</event>
<event seq="122" time="2017-03-24 10:42:46.307286 +0200" app="BvSshServer 7.28" name="I_CHANNEL_SESSION_CLOSED" desc="Session channel closed.">
<session id="1018" service="SSH" remoteAddress="194.44.93.243:63812" virtualAccount="Dima" windowsAccount="WEB461\BvSsh_VirtualUsers"/>
<channel type="session" id="1"/>
</event>
<event seq="123" time="2017-03-24 10:42:46.319179 +0200" app="BvSshServer 7.28" name="I_SESSION_DISCONNECTED_NORMALLY" desc="Session disconnected normally.">
<session id="1018" service="SSH" remoteAddress="194.44.93.243:63812" virtualAccount="Dima" windowsAccount="WEB461\BvSsh_VirtualUsers"/>
<parameters disconnectReason="SshError"/>
<error type="Flow" component="SshManager/transport" class="RemoteSshDisconn" code="ByApplication" description="disconnected by user"/>
</event>
Answer the question
In order to leave comments, you need to log in
<parameters initDir="C:\Path\To\Git\Bin"/> <error type="WinApi" operation="SetCurrentDirectory()" code="3" message="Системе не удается найти указанный путь."/>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question