3 ms·
I do this for a number of hosts simultaneously with macos and map them specifically in my .ssh/config: Host mac-a ... LocalForward 5903 localhost:590
by m463 6y ago
I do this for a number of hosts simultaneously with macos and map them specifically in my .ssh/config:
Host mac-a
...
LocalForward 5903 localhost:5900
Host mac-b
...
LocalForward 5904 localhost:5900
then I open the directory /System/Library/CoreServices in the Finder and drag Screen Sharing.app to the dock.
to remote into machine mac-b, in a terminal window:
ssh mac-b
The first time, click on "screen sharing" in the dock, and in the connect dialog enter localhost:5904
After that, you can right-click on screen-sharing in the dock - even when it's not running - and you will see a context menu item for "mac-b 5904.vncloc"
By the way, mac to mac screen sharing is very well done (will they axe it next?)
- it is very fast
- the keyboard stuff just works
- you can copy/paste even rich text between the local and remote macs
- you can drag and drop files from the remote desktop to the local one