IMP: ssh UNIX to Windows - Password prompt - SSH

This is a discussion on IMP: ssh UNIX to Windows - Password prompt - SSH ; Please assist me in bypassing the password prompt while using ssh, what I did: 1. Generate rsa public and private keys in UNIX. I have to execute ssh from UNIX to Windows. 2. Copy id_rsa.pub file to authorized_keys2 file on ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: IMP: ssh UNIX to Windows - Password prompt

  1. IMP: ssh UNIX to Windows - Password prompt

    Please assist me in bypassing the password prompt while using ssh, what
    I did:

    1. Generate rsa public and private keys in UNIX. I have to execute ssh
    from UNIX to Windows.
    2. Copy id_rsa.pub file to authorized_keys2 file on windows under .ssh
    (cygwin path)
    3. run sshd on windows
    4. Copy of my config file that I've uncommented:
    ---
    Protocol 2
    ServerKeyBits 1024
    LoginGraceTime 60
    StrictModes yes
    RSAAuthentication yes
    AuthorizedKeysFile .ssh/authorized_keys2
    ChallengeResponseAuthentication no
    PAMAuthenticationViaKbdInt no
    X11Forwarding yes
    Banner /etc/issue
    Subsystem sftp /opt/ssh/libexec/sftp-server
    ---
    5. Now when I execute ssh from UNIX I still get the password prompt,
    below is the output in -v:
    --------------------
    OpenSSH_3.5p1, SSH protocols 1.5/2.0, OpenSSL 0x0090609f
    10465: debug1: Reading configuration data /opt/ssh/etc/ssh_config
    10465: debug1: Rhosts Authentication disabled, originating port will
    not be trusted.
    10465: debug1: ssh_connect: needpriv 0
    10465: debug1: Connecting to 175.170.164.402 [175.170.164.402] port 22.
    10465: debug1: Connection established.
    10465: debug1: identity file /home/manchlia/.ssh/id_rsa type 1
    10465: debug1: identity file /home/manchlia/.ssh/id_dsa type -1
    10465: debug1: Remote protocol version 2.0, remote software version
    OpenSSH_4.3
    10465: debug1: match: OpenSSH_4.3 pat OpenSSH*
    10465: debug1: Enabling compatibility mode for protocol 2.0
    10465: debug1: Local version string SSH-2.0-OpenSSH_3.5p1
    10465: debug1: SSH2_MSG_KEXINIT sent
    10465: debug1: SSH2_MSG_KEXINIT received
    10465: debug1: kex: server->client aes128-cbc hmac-md5 none
    10465: debug1: kex: client->server aes128-cbc hmac-md5 none
    10465: debug1: SSH2_MSG_KEX_DH_GEX_REQUEST sent
    10465: debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
    10465: debug1: dh_gen_key: priv key bits set: 132/256
    10465: debug1: bits set: 1050/2048
    10465: debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
    10465: debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
    10465: debug1: Host '175.170.164.402' is known and matches the RSA host
    key.
    10465: debug1: Found key in /home/manchlia/.ssh/known_hosts:3
    10465: debug1: bits set: 990/2048
    10465: debug1: ssh_rsa_verify: signature correct
    10465: debug1: kex_derive_keys
    10465: debug1: newkeys: mode 1
    10465: debug1: SSH2_MSG_NEWKEYS sent
    10465: debug1: waiting for SSH2_MSG_NEWKEYS
    10465: debug1: newkeys: mode 0
    10465: debug1: SSH2_MSG_NEWKEYS received
    10465: debug1: done: ssh_kex2.
    10465: debug1: send SSH2_MSG_SERVICE_REQUEST
    10465: debug1: service_accept: ssh-userauth
    10465: debug1: got SSH2_MSG_SERVICE_ACCEPT
    10465: debug1: authentications that can continue:
    publickey,password,keyboard-interactive
    10465: debug1: next auth method to try is publickey
    10465: debug1: try pubkey: /home/manchlia/.ssh/id_rsa
    10465: debug1: authentications that can continue:
    publickey,password,keyboard-interactive
    10465: debug1: try privkey: /home/manchlia/.ssh/id_dsa
    10465: debug1: next auth method to try is keyboard-interactive
    10465: debug1: authentications that can continue:
    publickey,password,keyboard-interactive
    10465: debug1: next auth method to try is password
    manchlia@175.170.164.402's password:
    --------------


  2. Re: IMP: ssh UNIX to Windows - Password prompt

    mohitanchlia@gmail.com (06-02-08 17:28:18):

    > Protocol 2
    > ServerKeyBits 1024
    > LoginGraceTime 60
    > StrictModes yes
    > RSAAuthentication yes
    > AuthorizedKeysFile .ssh/authorized_keys2
    > ChallengeResponseAuthentication no
    > PAMAuthenticationViaKbdInt no
    > X11Forwarding yes
    > Banner /etc/issue
    > Subsystem sftp /opt/ssh/libexec/sftp-server
    > ---
    > 5. Now when I execute ssh from UNIX I still get the password prompt,
    > below is the output in -v:


    The server doesn't accept your key. Remove the "AuthorizedKeysFile"
    line and rename your auth-keys file to "authorized_keys". If it doesn't
    work, then add this:

    # sshd_config
    PasswordAuthentication no

    You'll get a more descriptive error message then.

    Regards.

+ Reply to Thread