Women in Technology

Hear us Roar



Article:
  SSH on Mac OS X for Worry-Free Wireless
Subject:   Works for me, after some effort
Date:   2001-11-27 22:03:27
From:   offwhite
I originally thought authorized_keys2 was a directory so when I followed the instructions I copied the file into that directory and it did not work. After correct it I was still not able to connect without a password.


Since my key was putting localhost into the key I figured that would not be a very helpful to identify a remote host. Since I am doing this on my iBook and I set up that as my hostname, I wanted to change the ibook to replace localhost. Apparently MacOS X does not have an easy way to do it from Networking Preferences. I had to dig into sysctl and set kern.hostname.


sysctl -w kern.hostname=ibook


But this does not stay the same after a reboot, so I had to configure a script in StartupItems to set the hostname at startup.


After changing the hostname I figured it would be a good idea to regenerate the server keys before generating my personal keys. I found a site which had directions which worked fine for me...


http://igloo.its.unimelb.edu.au/Webmail/tips/msg00520.html


Then after I generated my personal key and uploaded it as the filename as in the article it started to work for me.

Main Topics Oldest First

Showing messages 1 through 1 of 1.

  • Works for me, after some effort
    2001-11-28 09:34:33  res [View]



    Since my key was putting localhost into the key I figured that would not
    be a very helpful to identify a remote host...


    I assume you mean by this that your public key file had something like
    "username@localhost" at the end of the line. That is a comment, and it
    does not matter or affect anything in any way. "Fixing" it was
    unnecessary.


    After changing the hostname I figured it would be a good idea to
    regenerate the server keys before generating my personal keys.


    Also unnecessary; the server host keys have no connection with the
    hostname, except inasmuch as they are associated with hostnames in various
    known-hosts lists.


    Then after I generated my personal key and uploaded it as the filename as
    in the article it started to work for me.


    See my earlier post here; you may not want to leave things this way, as
    anyone who steals your laptop will have easy access to your remote
    accounts.


    --
    Richard Silverman
    slade@shore.net