Guest User!

You are not Sophos Staff.

This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Uploading a user SSH key

I want to upload my user SSH public key so that I can use the public key form of authorization.

It failed miserably.  My commercial SSH 2.4 client on Win2k  crashed hard.

why?

This was to an ID that I created by editing passwd and shadow.  I am able to get into this ID via SSH with password auth.  I did not create a user directory for this ID, using the same one of userlogin.  

Anyone here get SSH public key auth working?

I have these 2 outstanding issues and I can consider the firewall lauched....


This thread was automatically locked due to age.
Parents
  • I made some more changes on my user id and tried again, and paid closer attention.

    It seems that to use public key autherization, SSH wants to upload a file to directory ssh2 using secure file transfer.  And it is this secure file transfer (part of SSH) that Astaro seems not to support.

    Has anyone either:

    uploaded an SSH auth file with secure file transfer

    or

    used some other method?  I guess I could always put it on a diskette!
  • Here is how to get your SSH public key onto the server.  But I still cannot tunnel for some reason...

    Date: Wed, 1 May 2002 00:12:26 -0400
    From: Dov 
    To: rgm@htt-consult.com
    Subject: ssh2

    I've successfully logged into gate using PublicKey authentication.

    Here's the instructions for getting your public key to the firewall.

    1.   Log on to the remote SSH2 server using SSH2 and password authentication.

    2.   On your local machine, use Notepad.exe to open your local public key file.

    3.   With the key file opened in the Notepad application, open the Edit menu and choose Select All. Once everything is selected, open the Edit menu again and select Copy.

    4.   On the remote machine, complete the following steps:

    a.   cat > ~/.ssh/identity.pub

    b.   Paste the contents of the Clipboard (which should now contain the contents of your key file).

    c.   Issue a CTRL+D to close the identity.pub file.

    d.   Convert the key to one that SSH will recognize using the following command:
    /sbin/ssh-keygen -X -f ~/.ssh/identity.pub >> ~/.ssh/authorized_keys2


    Be sure to complete step 4-d.
Reply
  • Here is how to get your SSH public key onto the server.  But I still cannot tunnel for some reason...

    Date: Wed, 1 May 2002 00:12:26 -0400
    From: Dov 
    To: rgm@htt-consult.com
    Subject: ssh2

    I've successfully logged into gate using PublicKey authentication.

    Here's the instructions for getting your public key to the firewall.

    1.   Log on to the remote SSH2 server using SSH2 and password authentication.

    2.   On your local machine, use Notepad.exe to open your local public key file.

    3.   With the key file opened in the Notepad application, open the Edit menu and choose Select All. Once everything is selected, open the Edit menu again and select Copy.

    4.   On the remote machine, complete the following steps:

    a.   cat > ~/.ssh/identity.pub

    b.   Paste the contents of the Clipboard (which should now contain the contents of your key file).

    c.   Issue a CTRL+D to close the identity.pub file.

    d.   Convert the key to one that SSH will recognize using the following command:
    /sbin/ssh-keygen -X -f ~/.ssh/identity.pub >> ~/.ssh/authorized_keys2


    Be sure to complete step 4-d.
Children
No Data