Connect to Linux server from Mac

Home » Uncategorized » Connect to Linux server from Mac
Uncategorized No Comments
No votes yet.
Please wait...

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:

ssh root@IPaddress

for example the following line:

MKD1JTF1G3->$ ssh root@166.76.69.51

Because you connect to Linux server from Mac for the first time, the following message will appear:

The authenticity of host ‘198.61.208.131 (198.61.208.131)’ 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 root@198.61.208.131

root@198.61.208.131’s password:

 If you enter the correct password, the prompt responds with a shell prompt:

[root@yourservername ~]#

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:

helios.nceas.ucsb.edu

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>

In Linux

Open a Terminal

Click “Applications”, “Accessories”, and then choose “Terminal”

Connect to the server via this command:

ssh user@eos.nceas.ucsb.edu

In Mac

To access Linux server from Mac type:

ssh user@eos.nceas.ucsb.edu

LEAVE A COMMENT