Page:
Troubleshooting Steps
Pages
About Win32 OpenSSH and Design Details
Area Owners
Build OpenSSL
Building OpenSSH for Windows (using LibreSSL crypto)
Building Win32 OpenSSH on Linux
Certificate Authentication
DefaultShell
Deploy Win32 OpenSSH
Difference between openssh 5.9p1 and nomachine implementation
Dos2Unix Text file format converters
Eclipse CDT and GDB setup to debug SSH tools
FIDO U2F usage
Home
How to retrieve links to latest packages
Install Win32 OpenSSH Using MSI
Install Win32 OpenSSH
Intro Links for Penetration Testing
Logging Facilities
Migrate sshd_config from older versions
OpenSSH 32 bit Build and Installation Instructions
OpenSSH 64 bit Build and Installation Instructions
OpenSSH build sequence
OpenSSH utility scripts to fix file permissions
Project Scope
Project Status
Run OpenSSH Pester Tests
Run commands for various shells
Running Tests
SSH remote sessions on Windows
Security protection of various files in Win32 OpenSSH
Setting up a Git server on Windows using Git for Windows and Win32_OpenSSH
Setup public key based authentication for windows
TTY PTY support in Windows OpenSSH
Troubleshooting Steps
Various Considerations
Win32 OpenSSH RoadMap
[Deprecated] Building using VS 2015
[Deprecated] Win32 OpenSSH Automated Install and Upgrade using Chocolatey
sftp.exe examples
ssh agent
ssh.exe examples
ssh
ssh_config
sshd
sshd_config
17
Troubleshooting Steps
Manoj Ampalam edited this page 2019-06-10 12:12:29 -07:00
See Logging Facilities to modify logging location.
See if you have the right file permissions set.
Troubleshooting steps for typical service startup and connection issues:
-
If you see connection getting reset right after sending SSH2_MSG_KEXINIT, see if this may help.
-
Server side: run
sshd
in debug modeStop-Service sshd
(if sshd service is running)sshd.exe -d
This will run sshd in interactive mode under currently logged on user (typically as admin). Note that, in this mode, you can only login as the "currently logged on user" and only using "key based auth". To overcome these restrictions, you should instead runpsexec -s sshd.exe -d
to run sshd as SYSTEM.- This will dump debug logs in real time to stdout on the console
- You can also add additional
d
s for more detailed loggin:sshd.exe -dd
orsshd.exe -ddd
-
Client side: start
ssh
in verbose modessh.exe -v ...
- This will dump verbose logs in real time to stdout on the console
- You can also add additional
v
s to get more verbose messages:ssh.exe -vv ...
orssh.exe -vvv
Troubleshooting more complex issues:
- Server side
- Stop
sshd
Stop-Service sshd
- Delete
sshd.log
andssh-agent.log
(under %programdata%\ssh\logs) - Set the following in
sshd_config
SyslogFacility LOCAL0
LogLevel
toDEBUG
(orDEBUG2
/DEBUG3
for higher levels of logging)
- Rerun the workflow that's giving you problems.
logs\sshd.log
will containsshd
related traces. - If the problem isn't clear, please post these logs along with some steps to help us reproduce your problem in our GitHub Issues.
- Stop
- Client side
- Set
LogLevel
toDEBUG
(orDEBUG2
/DEBUG3
for higher levels of logging) inssh_config
. - Run
ssh.exe
in verbose mode as detailed above
- Set
Manuals
Installation
- MSI Install Instructions
- Script Install Instructions
- Alternative installation using the universal installer
- Retrieving download links for the latest packages
Usage
- SSH Usage Examples
- SFTP Usage Examples
- Using Certificate Authentication
- Fix SSH file permissions
- Info on SSH remote sessions on Windows
- TTY PTY support
- Troubleshooting