How to Connect VPS on Mac?

By LightNode ·

Compared with using Xshell on Windows to connect to remote Linux VPS servers, you can directly use Terminal on Mac OS system to achieve this without the help of third-party software, and you can directly log in on ssh port other than the default 22.


  1. Open Terminal directly
  2. Enter: ssh root@public IP
  3. Then enter your password and you can log in (There will be no display on the screen when you enter your password)

Connect VPS with Terminal


If your ssh port is not the default 22, then use the "-p parameter" to connect to your ssh port.

For example, your VPS ssh port is 1234, then the command is: ssh root@public IP -p 1234