Skip navigation

How to config ssh ?

4796 Views 39 Replies Latest reply: Mar 12, 2013 5:49 PM by Ciarals RSS
  • Alberto Ravasio Level 4 Level 4 (3,160 points)
    Currently Being Moderated
    Jan 8, 2013 2:37 PM (in response to liv04soccer)

    On the client in Terminal issue

     

    ssh -v admin@server

     

    Post the result. You may want to obscure the IP addresses and Server host key.

    iMac, OS X Mountain Lion (10.8.2), iMac12,1
  • Alberto Ravasio Level 4 Level 4 (3,160 points)
    Currently Being Moderated
    Jan 8, 2013 2:57 PM (in response to liv04soccer)

    Sorry I didn't mention, because it was obvious to me, but you must change admin with the username of your MacPro, and server with the IP or servername of your MacPro

  • Alberto Ravasio Level 4 Level 4 (3,160 points)
    Currently Being Moderated
    Jan 18, 2013 9:47 AM (in response to liv04soccer)

    liv04soccer wrote:

     

    Oh sorry about that. Here is what I got.

     

    debug1: Authentications that can continue: publickey

    debug1: Next authentication method: publickey

    debug1: Trying private key: /Users/Ryan/.ssh/identity

    debug1: Trying private key: /Users/Ryan/.ssh/id_rsa

    debug1: Offering public key: /Users/Ryan/.ssh/id_dsa

    debug1: Authentications that can continue: publickey

    debug1: No more authentication methods to try.

    Permission denied (publickey).

     

    There must be something wrong in your /Users/Ryan/.ssh directory or the SSH server ~/.ssh/ directory.

     

    Save your actual ~/.ssh contents on both the server and the client then remove every files in it.

     

    After you made the above house cleaning, generate once again the key pair on the client (see my post Step 2 - Key pair)

     

    The following files are the only files needed in ~/.ssh on the client

     

    id_dsa

    id_dsa.pub

     

    After you connected for the first time to an SSH server

     

    known_hosts

     

    will be created.

     

    The only file needed in ~/.ssh on the server is

     

    authorized_keys

     

    that is the exact copy of your id_dsa.pub if you are the only one allowed to connect to the server.

    iMac, OS X Mountain Lion (10.8.2), iMac12,1
  • Alberto Ravasio Level 4 Level 4 (3,160 points)
    Currently Being Moderated
    Mar 12, 2013 3:16 PM (in response to liv04soccer)

    This article explains how to troubleshoot ssh connection issues.

  • Ciarals Level 1 Level 1 (0 points)
    Currently Being Moderated
    Mar 12, 2013 5:49 PM (in response to Alberto Ravasio)

    DELETED POST

    MacBook Pro (15-inch Late 2008), OS X Mountain Lion (10.8.2)
1 2 3 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.