mac笔记本默认不开始ssh server,不过可以ssh远程的其他电脑。如何开启ssh server呢?
查看ssh server
ps -e |grep ssh
34643 ?? 0:00.02 /usr/bin/ssh-agent -l
34640 ttys000 0:00.17 ssh andrew@192.168.31.242
34666 ttys001 0:00.10 ssh andrew@192.168.31.242
36311 ttys002 0:00.00 grep ssh
打开设置->共享->远程管理
ssh localhost
The authenticity of host 'localhost (::1)' can't be established.
ECDSA key fingerprint is SHA256:Gaje+hcCzm3njLXOF5l+blUpD5/VAiE/dRWNscHjBkA.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.
这个时候就可以远程登录了,是不是很酷。