SSH Password / problem with Cygwin sshd service user

I just installed SSHd via Cygwin on a Windows XP Pro overseas box using RAT and excluded the openssh package from the installation. I started the cywin shell (from c: \ cywin) and ran Now, under ports that I know works safe and well, but I won't share that number. It is not a shared port, but it is under 40,000. Firewalls are disabled, etc. I am in the first admin account made on the box. (This is full admin) I have executed the following commands

chmod +r /etc/passwd
chmod +r /etc/group
hmod 777 /var
/*Created New Admin User Account To Be Used via SSH*/
mkpasswd -cl > /etc/passwd
mkgroup --local > /etc/group


I can connect locally, but not externally. I know my ports etc. OK.

Any possible problems as I really need this tunnel: P

+1


source to share


2 answers


How to try the following:

1) You said it works locally, but make sure the port is ok by connecting to 127.0.0.1/ localhost and you will get an "SSH handshake" message. For example, if you are using port 1234, you can run:

telnet localhost 12345

You should end up with something like:

SSH-2.0-OpenSSH_5.1p .....



2) Make sure the port is removed from the remote host.
Run telnet again from remote host and see if there is an SSH request.

If you can do it above, you know the server is listening fine. If you still can't connect to the remote computer, make sure your signatures are in order. For example delete known_hosts (2) on your client, etc.

On Windows, remember that sshd will run under a different environment / shell, both from the command line and from your local user account. You can configure the service to run as a specified user or local system account, so make sure your "account environment" is in order. One way to debug it could be to enable the local system account with desktop interaction enabled. Then you can add the "-d" switch to the registry using the cygwin service installation tool. You can also refer to this link for some information.

I'm sure if you follow "/usr/share/doc/Cygwin/openssh.README" you should be able to succeed. You can google for this document as well.

+1


source


When connecting locally, you mean what have you tried ssh localhost

? If so, you can bind your sshd to your 127.0.0.1 interface. Check your / etc / sshd_config for the following line:

ListenAddress 0.0.0.0

      



Then test it with ssh-ing to your actual IP and not localhost / 127.1.

If this works, you may have a NAT or Firewall issue, but the issue no longer occurs in Cygwin.

+1


source







All Articles