macOS开启远程连接SSH

开启远程连接SSH

开启远程登录功能

sudo systemsetup -setremotelogin on

启动SSH服务

sudo launchctl load -w /System/Library/LaunchDaemons/ssh.plist

关闭防火墙

关闭远程连接SSH

关闭SSH服务

sudo launchctl unload -w /System/Library/LaunchDaemons/ssh.plist

关闭远程登录功能

sudo systemsetup -setremotelogin off

Sitemap · Rss

津ICP备2021004480号-3