Benches macOS

6

SSH into OS X from cygwin fail: Permission deni...

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

Hey all, I've been all over the intarwebs trying to find an answer to this, I'm hoping someone here can help me.

I'm attempting to ssh into my mac (OS X 10.5.5) from windows XP sp3 running cygwin (successfully installed ssh libraries).

I can get to the point to accept the RSA to the list of known hosts, but when I put in the password (which I know is right) it denies giving the error:

"Permission denied, please try again."

Here is the syntax I'm using:

ssh [email protected]

I know it's not an issue with cygwin, because I'm successful in tunneling into my xp machine from my mac. It's just the vice-versa that isn't working.

I've found some comments about PAM being off, causing errors, so I enabled it in sshd_config. This had not effect whatsoever.

Ideas? Comments?

Thanks in advance!

EDIT: Just realized I posted this in the 10.4 tiger forum - my apologies! Mods: please feel free to delete.

Message was edited by: Tyrun

6 replies

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    How about placing your XP cygwin created public key into your authorized_keys on your mac?

    I ssh through cygwin into macs all the time from XP SP2 and I've never had any probs, but once I know I can get in I just add my key to the authorized_keys file and forget about having to type passwords.

    If you need any help about how to do it just post here.

  2. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks for the heads up about placing the public key in the authorized_keys file.

    Would you mind pointing me in the direction of a good walkthrough on how to do that?

    Also, that doesn't resolve the issue of why I can't get through - is it an issue on my mac not resolving the password somehow? I'd like to get this figured out for the future.

  3. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Here are some good sites that explain what to do. I mentioned the authorized_keys 'hack' cause I don't have a clue what could be happening, my only guess would be some firewall issue but I don't think that this applies here as it gets to the stage of asking for a pw so the port is open. If possible I would try a cross-over cable connection and trouble-shoot from there.

    http://pkeck.myweb.uga.edu/ssh/
    http://www.csua.berkeley.edu/~ranga/notes/ssh_nopass.html
    http://www.puddingonline.com/~dave/publications/SSH-with-Keys-HOWTO/document/htm l/SSH-with-Keys-HOWTO-4.html
    http://suso.org/docs/shell/ssh.sdf

  4. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Yea unfortunately, these two computers are miles apart and getting them in the same room just isn't feasible. (I'm remoting into the XP machine from the mac - which works just fine).

    I really doubt it's a firewall/NAT issue, as I AM able to get to the point of asking for the password. I already set up the NAT for the xp machine for port 22, and it's working fine. Like I said, I can ssh into the xp machine from the mac just fine - so it's not a connection issue.

    Oh, and to the workaround: I'm trying to get rsync (the sync command line utility) to work for both machines, and I need the password for that - if I put the authorized_keys hack into effect, will that take care of the need for a password for the rsync command?

    Thanks again

  5. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    If they are miles apart then you aren't going to be able to put your key into the authorized_keys of the mac without physically doing it on-site.

    The authorized keys option is used for all ssh connections, so yes, it would work.

    Good luck and post if you find the solution.

  6. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Like I said, I'm on-site w the mac, so I should be able to add the keys, buts it's still not the answer. Has anone else got any ideas?