having trouble with ssh and autologin with Putty to Openssh server - SSH

This is a discussion on having trouble with ssh and autologin with Putty to Openssh server - SSH ; Hi all - Thanks for your help. I have a OpenSSH server (new build) and have created a $HOME/.ssh folder and copied the contents of the public key generated by puttygen to that file by cp command. I can log ...

+ Reply to Thread
Results 1 to 3 of 3

Thread: having trouble with ssh and autologin with Putty to Openssh server

  1. having trouble with ssh and autologin with Putty to Openssh server

    Hi all - Thanks for your help.

    I have a OpenSSH server (new build) and have created a $HOME/.ssh
    folder and copied the contents of the public key generated by puttygen
    to that file by cp command.

    I can log in directly to the IP address through my VPN tunnel (with
    Puty) and have used SCP to copy files through this tunnel.

    I am loading the private .ppk file under connection Auth and then when
    I try to use the auto-login name under connection data of the putty
    client I get a Putty fatal error that says server unexpectedly closed
    network connection nearly immediately.

    the error only happens when I try with the private key. It is the
    private key exactly as puttygen supplied. Do I need to do anything
    elsewhere to get the autologin, public-private authentication going?

    TRhanks in advance


  2. Re: having trouble with ssh and autologin with Putty to Openssh server

    I verified line breaks and made contiguos and remove the --- BEGIN and
    ---END tags and now I get a server refused key and prompts me for
    password. This may make it a little easier. I forgot to mention I did
    the chmod go -w for the authorized_keys2 file

    alex


  3. Re: having trouble with ssh and autologin with Putty to Openssh server

    Thanks all - it works now.
    I regenerated keys using ssh-keygen -t rsa and saved to a non $HOME
    area and it works great. Followed this article...
    http://bmonday.com/articles/653.aspx

    hope it helps others...
    Thanks


+ Reply to Thread