0
I have two PC's both running Windows 7 (64 bit).
I installed CYGWIN (64 bit) on them today simply for the SSH functionality. (I want to use a file sync program called Unison and Unison recommends the CYGWIN ssh).
I have done ssh-host-config and ssh-keygen. I also changed the sshd_config file to include: PasswordAuthentication yes (instead of being commented out) I restarted sshd after the config change.
On both machines, I can do:
ssh localhost
and login in no problem using the Windows password for that machine. After the login, it shows me the user and host's name at the localhost's CYGWIN prompt.
However, when I do....
ssh theotherbox -l user@theotherbox
(using the values for the and I saw in the localhost's CYGWIN prompt above), then I always get:
Permission denied, please try again.
I am running Comodo Firewall on both boxes, and the first time I attempted this, Comodo asked if it should allow the incoming connection. I said YES and remember that answer. So I don't think the firewall is part of the problem. (Unless there is something I need to allow in the firewall on the origin computer's setup?)
Since the ssh login on localhost works, I am not sure what to look at or how to resolve this next.
Thanks!
OK, I copied that ssh command format from the Unison documentation. Using the "-l" param anywhere in the command line has no effect on the results; still "permission denied". However, your second idea worked: "ssh user@hostname" that got it working. Thanks. – mkstreet – 2014-06-30T23:21:01.720
With the "-l" form, the order of the parameters isn't the issue. The issue is that "-l" specifies the username. So "ssh theotherbox -l user@theotherbox" says to log into theotherbox as a user named "user@theotherbox". – Kenster – 2014-07-01T01:24:24.597