![ssh network is unreachable windows 7 ssh network is unreachable windows 7](https://3.bp.blogspot.com/-tGAd3uGhv7U/WL7cfWjPKOI/AAAAAAAAErw/85IqU3Q8zAkkrfQX4yiw2HkPw7DO9qKzQCLcB/w1200-h630-p-k-no-nu/ssh-setting.jpg)
In addition to using Cygwin to accept ssh connections on the Windows machine:Ĭreate a file called \bin\winpty-gitbash.bat with these contents, where is a placeholder for the path you installed git-for-windows to (by default it's C:\Program Files\Git): OFF Since the title has been "reworded" and my post might now seem sligthly out of place, allow me to directly answer the original question: "Use git bash instead of cmd when sshing from Linux" Put one of these lines into /etc/nf: db_shell: /bin/winpty-cmd.bat Let's name them winpty-cmd.bat and winpty-powershell.bat and fill them with the following contents, where of course is a placeholder for the path you installed Cygwin to (by default it's C:\cygwin): OFF If you do this from outside of a Cygwin terminal, look for a bin subdirectory of the Cygwin installation folder.Ĭreate two batch files in /binand make sure they have execute permissions.
#SSH NETWORK IS UNREACHABLE WINDOWS 7 DOWNLOAD#
Download winpty for Cygwin and extract winpty.exe, winpty.dll and winpty-agent.exe to /bin.There is even a way to get a cmd or powershell prompt upon login, which I recently found out about on Stackoverflow. All Cygwin processes (terminal windows and sshd service) must be restarted for the setting to take effect. Possibly substituting /usr/bin/sh with the path to your preferred shell. Then add the following line to /etc/nf: db_shell: /bin/sh The shell can of course be customized: ash, bash, dash and sh are included by default, but just run the Cygwin installer and you can add your choice of zsh, mksh, tcsh or posh. This would allow you to scp to and from it, as well as login from a remote system via ssh to a Bash shell and command-line git.
![ssh network is unreachable windows 7 ssh network is unreachable windows 7](https://cdn.netadmintools.com/wp-content/uploads/s11.gif)
My warm recommendation is to use Cygwin to accept ssh connections on your Windows machine. Shells other than powershell, powershell, bash, cygwin, cmd, and (optional) - flag that allow you to skip escaping the arguments ofĭefault shell. Computer\HKEY_LOCAL_MACHINE\SOFTWARE\OpenSSH\DefaultShellEscapeArguments.(optional) - switch that the configured default shell requires toĮxecute a command, immediately exit and return to the calling process.