-
Notifications
You must be signed in to change notification settings - Fork 802
Troubleshooting Steps
Manoj Ampalam edited this page Jun 10, 2019
·
17 revisions
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
sshdin debug mode-
Stop-Service sshd(if sshd service is running) -
sshd.exe -dThis 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 -dto run sshd as SYSTEM. - This will dump debug logs in real time to stdout on the console
- You can also add additional
ds for more detailed loggin:-
sshd.exe -ddorsshd.exe -ddd
-
-
-
Client side: start
sshin verbose modessh.exe -v ...- This will dump verbose logs in real time to stdout on the console
- You can also add additional
vs to get more verbose messages:-
ssh.exe -vv ...orssh.exe -vvv
-
Troubleshooting more complex issues:
- Server side
- Stop
sshdStop-Service sshd
- Delete
sshd.logandssh-agent.log(under %programdata%\ssh\logs) - Set the following in
sshd_configSyslogFacility LOCAL0-
LogLeveltoDEBUG(orDEBUG2/DEBUG3for higher levels of logging)
- Rerun the workflow that's giving you problems.
logs\sshd.logwill containsshdrelated 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
LogLeveltoDEBUG(orDEBUG2/DEBUG3for higher levels of logging) inssh_config. - Run
ssh.exein verbose mode as detailed above
- Set
- MSI Install Instructions
- Script Install Instructions
- Alternative installation using the universal installer
- Retrieving download links for the latest packages