I am attempting to get remote debugging working using Xcode 2.5 under
Mac OS X 10.5.2 and have run into trouble without getting very far.
Both machines have the same version of Xcode and Mac OS X.
The first step is get ssh setup using public key authentication. I
know this isn't setup correctly yet because, as the documentation
states, if I ssh from Machine B (MB) to machine A (MA), I am prompted
for the users password and not a passphrase or nothing at all.
Remote Login is enabled in the Sharing Preferences on MA.
So, on MA, I type in, as the documentation states:
ssh-keygen -b 2048 -t dsa
however, the terminal immediately tells me that:
DSA keys must be 1024 bits
so, I then enter the command:
ssh-keygen -b 1024 -t dsa
and things proceed normally, I enter a passphrase and id_dsa.pub is
created.
~ $ls -la ~/.ssh/
total 16
drwx------ 4 Eric Eric 136 Mar 31 15:41 ./
drwxr-xr-x+ 56 Eric Eric 1904 Mar 31 12:29 ../
-rw------- 1 Eric Eric 744 Mar 31 15:41 id_dsa
-rw-r--r-- 1 Eric Eric 609 Mar 31 15:41 id_dsa.pub
I then copy the contents of id_dsa.pub to authorized_keys by doing:
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
and then do
chmod go-rwx ~/.ssh/authorized_keys
~ $ls -la ~/.ssh/
total 24
drwx------ 5 Eric Eric 170 Mar 31 15:43 ./
drwxr-xr-x+ 56 Eric Eric 1904 Mar 31 12:29 ../
-rw------- 1 Eric Eric 609 Mar 31 15:43 authorized_keys
-rw------- 1 Eric Eric 744 Mar 31 15:41 id_dsa
-rw-r--r-- 1 Eric Eric 609 Mar 31 15:41 id_dsa.pub
The documentation then states:
-----
Test the connection by logging in to the remote computer using ssh.
From the command-line,
type “sshusername@hostname”. Ensure that you are not asked for the
user’s password. If you did
not leave it empty in step 1, you should be prompted for your
passphrase, as in the following
example:
-----
however, when, from MB, I attempt to ssh into MA (ssh
email@hidden), I am asked for the users password.
Any ideas?