同一网段,以ftp 命令方式访问macbook,Connection refused?

我已经试过了,在PD里开两台redhat linux,他们之间完成可以ssh访问各自进行访问,畅通。只是mac与虚拟机之间有点慢233

但是ftp命令访问,仅存在于2台linux之间,我设置了一些东西才搞定。

mac 可以正常ftp xxxx.xxxx.xxxx.xx访问两台linux,反过来linux不能以ftp访问mac,达到put/get的能力,我想我一定是缺少了哪些步骤,mac里, 类似开启21端口一样开启vsftp 设置/ect/vsftpd/user_list访问用户等等。。。
求个专业的,详细解答,谢谢大佬
😎

用户上传的文件

发布日期 2018年5月4日 上午8:53

回复
问题被标记为 排名最靠前的回复

发布日期 2018年5月16日 上午11:01

如果较真的话,10.12及之前版本思路是这样的:

将/System/Library/LaunchDaemons/ftp.plist中的Disabled一项改为False(0),这样设置FTP服务可用;如果不重启 macOS系统,还需要手动启动它。


使用命令行是最方便的:

  • 读取该文件的内容:
    sudo defaults read /System/Library/LaunchDaemons/ftp.plist
  • 设置ftp服务可用(Disabled=False):
    sudo defaults write /System/Library/LaunchDaemons/ftp.plist Disabled -bool False
  • 设置ftp服务禁用(Disabled=True):
    sudo defaults write /System/Library/LaunchDaemons/ftp.plist Disabled -bool True
  • 启动ftp服务:
    sudo launchctl load /System/Library/LaunchDaemons/ftp.plist
  • 停止ftp服务:
    sudo launchctl unload /System/Library/LaunchDaemons/ftp.plist


测试依然是:

ftp localhost


而10.13已经不支持ftp了。

回复量: 4

没有回复。

这个主题已被系统或社区团队关闭。 你可以为你认为有帮助的任何帖子投票,也可以在社区中搜索其他答案。

同一网段,以ftp 命令方式访问macbook,Connection refused?

欢迎来到 Apple 支持社区
Apple 客户在其产品方面互相帮助的论坛。使用您的 Apple 帐户开始畅游其中吧!!