andrew@localhost: Permission denied (publickey,password,keyboard-interactive).
ssh localhost没有设置免密码登入
ssh localhost
Password:
Last login: Wed May 20 10:48:23 2020 from ::1
ssh-kengen生成密码之后
ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/Users/andrew/.ssh/id_rsa):
/Users/andrew/.ssh/id_rsa already exists.
Overwrite (y/n)? y
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /Users/andrew/