0

Description:

I have 2 types of MacOS VMs in my environment:

1)

admin@vm1 ~ % system_profiler SPSoftwareDataType
Software:

System Software Overview:

  System Version: macOS 11.1 (20C69)
  Kernel Version: Darwin 20.2.0
  Boot Volume: Macintosh HD
  Boot Mode: Normal
  Computer Name: vm1
  User Name: admin (admin)
  Secure Virtual Memory: Enabled
  System Integrity Protection: Enabled
  Time since boot: 17 minutes

admin@vm1 ~ % sw_vers
ProductName:    macOS
ProductVersion: 11.1
BuildVersion:   20C69
admin@vm2 ~ % system_profiler SPSoftwareDataType
Software:

System Software Overview:

  System Version: macOS 10.15.6 (19G2021)
  Kernel Version: Darwin 19.6.0
  Boot Volume: mac
  Boot Mode: Normal
  Computer Name: vm2
  User Name: admin (admin)
  Secure Virtual Memory: Enabled
  System Integrity Protection: Enabled
  Time since boot: 97 days 3:45

admin@vm2 ~ % sw_vers
ProductName:    Mac OS X
ProductVersion: 10.15.6
BuildVersion:   19G2021

I only have terminal access to these VMs (no GUI available).

Requirements:

I need the SSHD daemon to listen on port TCP 22 and on port TCP 7000.

What I tried so far:

Cannot change ssh port on High Sierra

  • I tested method #2 from this answer with the second ssh2.plist file, but it doesn't seem to work. I get error messages like "Unknown key for string: SHAuthorizationRight" and "com.apple.xpc.launchd[1] (com.openssh.sshd.<some_id>): Service exited with abnormal code: 255". SSH continues to listen on port 22, but not on port 7000.
  • Adding Port 22 and Port 7000 to /etc/ssh/sshd_config doesn't seem to help at all.

How do I go about solving this ?

Does anyone have access to a similar version of MacOS to confirm how to achieve this ?

You must log in to answer this question.

Browse other questions tagged .