In both cases check the log file of your server to see an actual reason, it closed connection for. The server error may possibly be initiated by an error on the client (WinSCP) side. If you get this error message in the middle of the session, it is usually caused by a fatal error on the server. Your SSH server, particularly OpenSSH, may not be able to access the server key files, due to an incorrect permissions.Your SSH server may also lack the SFTP subsystem.However, I can access the repositories through the command line just fine.
Hello, Whenever I try and clone anything through Sourcetree 3.2.6 it outputs this error, on any computer. bin/sftp-server) or the binary is not present on your server. Sourcetree 3.2.6 FATAL ERROR: Server unexpectedly closed network connection.
Your shell is probably incompatible with the application (BASH is recommended).” Try to force bash shell explicitly on SCP/Shell page of Advanced Site Settings dialog. This commonly exhibits with SCP protocol with associated error message “Error skipping startup message. The same is true for some configurations (or profiles used) for otherwise working shells. Some shells do not work with non-interactive sessions.
Also some servers refuse to start a shell if your password has expired or your account was terminated.With some servers (like OpenSSH or Sun SSH), you may need to be allowed to start a shell, even if using SFTP protocol. Your account may not be allowed to start a shell at all.