sshd windows server - automatic ssh linux authentication.

From: rn001 (rn001_at_cebas.csic.es)
Date: 10/18/04

  • Next message: Michael A Gilchrist: "scp problems with RedHat Machines to Unix w/SSH"
    To: Rajsekar <raj--cutme--sekar@cse.iDELTHISitm.ernet.in>
    Date: Mon, 18 Oct 2004 16:52:59 +0200
    
    

    Thanks for your answer, Rajsekar.
    That step has done it well for me, but I'm still with the problem.
    I've spent at least 15 hours just with this, at the moment. I'm really
    becaming crazy. It goes on asking for a password interactively. Maybe I
    should change some option in the "ssh_config" file for the linux client and
    the "sshd_config" file for the windows sshd server?

    I'm using protocol 2. Maybe I'm not indicating the correct parameters

    In the windows "sshd_config" file for the sshd server:
    1)
    What should I do with the "Hostkey" line? This is refered to the path in
    client computers? If this is a windows path, how could write it?
    2) I've put:
    PubKeyAuthentication yes
    I guess this is correct (?)
    3) How can I write in windows the path to my authorized keys file? I'also seen
    that something like
    AuthorizedKeysFile C:\Program files\OpenSSH\etc\authorized_keys
    prevents the server from starting.

    In the linux "ssh_config" file, I'm writing:
        PasswordAuthentication yes
        HostbasedAuthentication yes

    It always asks for a password, and if I put "PasswordAuthentication no", then
    I've a message saying "Permission denied". Oh, my god!!

    Well, thank you for any help or advice,

    Javier
    -------------------------------

    El Lunes, 18 de Octubre de 2004 20:04, escribió:
    > You are trying to create two keys seperately.
    > That is not the way
    >
    > Execute ssh-keygen once and you get a pair of keys, private and public.
    > private is kept secret (client side).
    >
    > public is put in the server and since you want to tell ssh server that
    > whenever you/anyone says he has got a key (private), the server should
    > check the public, you will have to put it in some place(I do not know where
    > to put in windows - Read documentation regarding this). In linux what you
    > would (typically) do is this.
    >
    > Client$ ssh-keygen -t rsa -f new_key
    > Enter passphrase (empty for no passphrase):
    > Enter same passphrase again:
    > ...
    > ...
    > ...
    >
    > Now you will (usually) add the file new_key.pub to ~/.ssh/authorized_keys
    > in the server. Then you can use ssh `-i' option and everything must work
    > as expected.
    >
    > I hope this clears the doubt even though I have provided quite terse info.

    -- 
    A. Javier Garcia
    Water and Soil conservation department
    CEBAS-CSIC
    Campus Universitario Espinardo
    PO BOX 164
    30100 Murcia (SPAIN)
    Phone: +34 968 39 62 57
    Fax: +34 968 39 62 13
    email: rn001@cebas.csic.es
    

  • Next message: Michael A Gilchrist: "scp problems with RedHat Machines to Unix w/SSH"

    Relevant Pages

    • Re: Product Activation
      ... Latest version includes support for Windows 2003. ... > Unless I am mistaken jellybean works for XP but not server 2003. ... >> Wayne McGlinn ... >>> ghost and reactivate using different CD keys. ...
      (microsoft.public.cert.exam.mcse)
    • Re: SSH as root
      ... not necessarily of the client or server. ... > root password until they catpure the one you try and use, ... When you learn to use keys properly, it makes the most sense to use the same root ... The passphrase is not sent to the server, ...
      (SSH)
    • Private Key Not Accessible on 2003 server - works on 2000 server, Please Advise
      ... Private Key is found and Accessible and Decryption ... These same keys and code hosted on a Windows 2003 server: ...
      (microsoft.public.platformsdk.security)
    • SoftKeyboard CapsLock problem
      ... Windows CE and server is Windows. ... In this application I m using On Screen Keyboard on Wince. ... also shows all upper keys on numeric(e.g instead of 1,2,3 it shows ...
      (microsoft.public.windowsce.embedded)
    • Re: ssh : password against keys
      ... If someone manages to get in my windows Box, ... > keep a copy of the password protecting the private key file in memory so ... Using keys instead of passwords is a security-thing, ... But usage of keys with passphrase ...
      (comp.os.linux.security)