启用远程登陆功能:
sudo systemsetup -setremotelogin on
启动远程登陆后台服务
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
修改ssh服务配置,如端口,监听地址,是否支持root用户远程登陆,是否支持tty
启用远程登陆功能:
sudo systemsetup -setremotelogin on
启动远程登陆后台服务
sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist
修改ssh服务配置,如端口,监听地址,是否支持root用户远程登陆,是否支持tty