Skip to content

kk12837/mac_ssh_withoutpassword

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

mac_ssh_withoutpassword

steps to disable mac ssh password auth

cd ~/.ssh/

ssh-keygen -t rsa -P '' -f ~/.ssh/id_rsa

cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys

chmod go-w ~/

chmod 700 ~/.ssh

chmod 600 ~/.ssh/authorized_keys

sudo launchctl stop com.openssh.sshd

sudo launchctl start com.openssh.sshd

About

steps to disable mac ssh password auth

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published