1. 启动FTP Server:
命令行下, sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.pliststop:
sudo -s launchctl unload -w /System/Library/LaunchDaemons/ftp.plist确认已经启动:
ftp localhost会出现类似如下内容:
2. 启动SFTP Server:
打开 System Preferences -> sharing,勾上"Remote Login",如下:同样,测试sftp是否成功打开:
sftp localhost