There are many ways can answer your question “how to connect to Linux server from Mac”. You can connect to Linux server from Mac using Terminal. If your PC runs Mac OS X, you do not need to install a third-party client like PUTTY to connect to Linux server via secure shell “SSH”.
How to connect to Linux server from Mac
We assume that you want to connect to a new cloud server for the first time.
*Notice that you will type your username instead of root in the following instructions.
From Apple menu, select Applications, choose Utilities, and then click on Terminal.
To access Linux server from Mac using Terminal; after clicking on it, a window interface will display containing (user00241 in ~MKD1JTF1G3->$)
Use the following command to establish a SSH connection to the server you want to Access:
for example the following line:
MKD1JTF1G3->$ ssh firstname.lastname@example.org
Because you connect to Linux server from Mac for the first time, the following message will appear:
The authenticity of host ‘220.127.116.11 (18.104.22.168)’ can’t be established.
RSA key fingerprint is 47:ff:76:b4:211:0f:11:15:21:bd:92:2f:44:0a:d9:0a.
Are you sure you want to continue connecting (yes/no)?
So type yes and press Enter in order to add this RSA key to the list of known hosts. This warning will never appear again in the future when you access Linux server from Mac.
Then you must enter the root password of the server you want to access via the following command. Note: Password does not repeat to the screen
MKD1JTF1G3-$ ssh email@example.com
If you enter the correct password, the prompt responds with a shell prompt:
Now after you knew how to connect to Linux server from Mac for the first time, change the password of the root
Enter new UNIX password:
Retype new UNIX password:
If the passwords match, a confirmation message that authentication is updated successfully as follow:
Passwd: password updated successfully
Another way to connect to Linux server from Mac via Putty
Download Putty from here
In session of Putty, enter the server name as:
Then save changes for future usages
To connect; Click “Open”, agree to any message asking if you wish to accept the server’s key<br>
Open a Terminal
Click “Applications”, “Accessories”, and then choose “Terminal”
Connect to the server via this command:
To access Linux server from Mac type: