cuisongliu / notes

0 stars 0 forks source link

Mac ssh port update #7

Open cuisongliu opened 1 year ago

cuisongliu commented 1 year ago

https://www.dianjilingqu.com/513545.html

修改ssh和vnc端口可以通过修改/etc/services文件来实现

ssh 22/udp # SSH Remote Login Protocol

  ssh 22/tcp # SSH Remote Login Protocol

cuisongliu commented 1 year ago

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