September 24, 2008

Mac OSX Remote Login Acess Screencast Part 8

Filed under: TMUP Screencasts — Victor Cajiao @ 11:23 am

This is the last part of George’s great series on OS X and SSH. Thanks to George Starcher.

Like what you read or heard? Share and Enjoy:
  • digg
  • YahooMyWeb
  • Furl
  • del.icio.us
  • NewsVine
  • RawSugar
  • Reddit
  • Spurl

View Comments Mac OSX Remote Login Acess Screencast Part 8 »

  1. good video, i like to use SSH in my iMac to connect to remote hosts and work on dedicated servers through my iMac.

    Regards,

    Hardy
    Web Hosting

    Comment by Mejor Hosting — October 1, 2008 @ 11:59 am

  2. HI, George
    I am trying to follow the series to set up on my home mac. I have a couple of questions-
    1) Does keys have anything to do with port number and ip address. Can I change port number after generating keys? Same as IP addresses?
    2) if we ever install a new operating system on imac at home, do i need to do the whole thing again? If so what about on mac book? Do I need to do thing anything different apart from replacing the id_rsa file?
    3) How does my mac book know which key to use, if i am trying to ssh in to two different macs like office imac and home i mac.
    4) If I want to use screen sharing, or itunes do i need to make any changes?

    Thanks for the great work.

    Comment by chin — October 5, 2008 @ 5:04 pm

  3. The quick answers.
    1. Keys have nothing to do with network settings. The only relationship is private and public keys are a pair that go together.
    2. Yes you have to setup software like you would any software if you reloaded your mac. The only difference is as long as you keep your keys somewhere you do not have to make new ones. Just put the public key back. The file on the mac you connect to is called authorized_keys, you copy your public key into that as shown in the video.
    3. Because you would tell it which file to use. In this case you would have different private keys named differently instead of one file called id_rsa. If connecting to a mac at work make sure your IT department approves it. Otherwise you may be violating company policy and can risk your job in some places.
    4. Yes as linked in the notes itunes sharing is a different process you can read about it on my blog. Screen sharing uses the vnc port 5900.

    Comment by georgestarcher — October 6, 2008 @ 4:49 am

  4. Thanks George. Looking forward for some more episodes like these.

    Comment by chin — October 6, 2008 @ 6:11 am

  5. Hi, George

    It is me again! I am not able to succeed with keys.
    I am not sure wether my earlier message went through or not.
    1) On which machines do you create keys? On laptops (clients) or Desktops(servers)? On some tutorials they are instructing to generate keys on laptop and place authorized keys on server. Doesn't it matter as long authorized key is on server and pvt and public keys are on laptop?
    2) How do you add more than one authorized keys. Because I want to access my iMac(server) both from my mac book (client) and my mac pro(client) at work. How do i append? Is it just cut and past at the end of first authorized key?
    3) Is authorized_keys2 ibetter than authorized_key?

    Thanks for any help.

    Comment by chin — October 7, 2008 @ 10:29 pm

  6. It doesn't matter which machine you create the keys on. The private goes on the laptop the public on the server.
    The public and any other public go in the authorized_keys file. yes you can stack them, one per line.
    Just use authorized_keys on a mac and you will be fine.

    Comment by georgestarcher — October 8, 2008 @ 12:32 pm

  7. Hi, George

    Everything goes well until keys are created. When I tried to login it says “permission denied(publickey)”. But everything works If I revert it to access with passwords instead of keys. I am not sure why It is causing problems with keys. In fact it asks for pass-phrase, I also can see my own banner. But denies access. Is there any criteria for the pass phrase such as number of characters. Mine 79pitha59. I am going to change it gain. Do you see this kind of pass phrase causing problems.

    Thank you for your patience.

    Comment by chin — October 8, 2008 @ 4:28 pm

  8. No that passphrase is not an issue. You must be missing something else fundamental. Something like the authorized_keys file not being in the .ssh subdirectory under the user account you are trying to log in as.

    Comment by georgestarcher — October 8, 2008 @ 7:22 pm

  9. Hi,
    I checked the location of authorized_keys. It is in ~/ .ssh. Any thoughts.
    Thanks-chin

    Comment by chin — October 10, 2008 @ 7:55 am

  10. I read alot about SSH, but it's first time to learn something serious.

    Thanks

    Comment by web hosting review — May 10, 2009 @ 9:06 am

  11. [...] Part Eight [...]

    Pingback by OpenDNS and SSH for Mac | George Starcher — June 26, 2010 @ 1:21 pm

RSS feed for comments on this post. TrackBack URI

Leave a comment

(required)

(required but not published)

blog comments powered by Disqus
 

September 2008
S M T W T F S
« Aug   Oct »
 123456
78910111213
14151617181920
21222324252627
282930