ablog

不器用で落着きのない技術者のメモ

Mac OS X の sshd を起動する

$ su -
# ssh-keygen
Enter file in which to save the key (/var/root/.ssh/identity): /etc/ssh_host_key
Enter passphrase (empty for no passphrase):<return>
Enter same passphrase again: <return>
# ssh-keygen -t rsa
Enter file in which to save the key (/var/root/.ssh/id_rsa): /etc/ssh_host_rsa_key
Enter passphrase (empty for no passphrase): <return>
Enter same passphrase again: <return>
# ssh-keygen -t dsa
Enter file in which to save the key (/var/root/.ssh/id_dsa): /etc/ssh_host_dsa_key
Enter passphrase (empty for no passphrase): <return> 
Enter same passphrase again: <return>
# /usr/sbin/sshd &

追記:
起動はこうしたほうが楽かな。

# `which sshd` &