SSH with pubkey authentication on OSX

OSX, Switching, Tools Add comments

Just a few well known steps needed:
Enable following lines in the sshd_config (sudo joe /etc/sshd_config) on OSX:

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys

On the client generate the keyfile (in this case my client is Ubuntu 7.04):

ssh-keygen -t dsa
cat id_dsa.pub | ssh sascha@mymac ‘cat >>~/.ssh/authorized_keys’

On the mac again verify that the authorized_keys has been created. Afterwords it’s needed to restart the sshd daemon, and not with /etc/init.d/sshd…. instead with following command:

sudo service ssh stop
sudo service ssh start

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in
Stoppt die Vorratsdatenspeicherung! Jetzt klicken & handeln!Willst du auch bei der Aktion teilnehmen? Hier findest du alle relevanten Infos und Materialien: