SSH automatic logon:
ssh localhost
-
ssh: connect to host localhost port 22: Connection refused
solution: System Preferences->sharing->Remote Login
-
ssh localhost need password:
solution:
ssh-keygen -t rsa
cat id_rsa.pub >> authorized_keys
chmod 400 authorized_keys
try again