{"id":3503,"date":"2019-10-25T12:03:14","date_gmt":"2019-10-25T04:03:14","guid":{"rendered":"https:\/\/www.mondoze.com\/guide\/?post_type=kb&p=3503"},"modified":"2022-10-07T08:12:45","modified_gmt":"2022-10-07T00:12:45","slug":"how-to-connect-to-a-linux-server-using-ssh","status":"publish","type":"kb","link":"https:\/\/www.mondoze.com\/guide\/kb\/how-to-connect-to-a-linux-server-using-ssh","title":{"rendered":"How to connect to a Linux server using SSH?"},"content":{"rendered":"\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t
\n\t\t\t
\n\t\t\t\t\t\t\t
\n\t\t\t\t\t\t
\n\t\t\t\t
\n\t\t\t

Overview<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

Secure Shell (SSH) is a UNIX-based command interface and protocol for securely getting access to a remote computer. SSH is actually a suite of three utilities slogin, ssh, and scp these are secure versions of the earlier UNIX utilities, rlogin, rsh, and rcp. SSH commands are encrypted and secured in several ways. Both ends of the client\/server connection are authenticated using a digital certificate, and passwords are protected by being encrypted.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t

\n\t\t\t\t
\n\t\t\t

Warning: <\/span> Please read our root access or Administrator access disclaimer below before you continue to read this article.<\/h4>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

One of the greatest benefits of subscribing to our VPS or (Dedicated Server) plans is that you will have root or administrator’s access to the system. With this access, you are free to install or configure applications and scripts without the limitations of a shared environment and we encourage you to do so. However, having administrator rights also mean that files may be wrongly deleted or misconfigured which may result in a VPS (or Dedicated Server) going down. Do note that some of these changes are irreversible.<\/em><\/p>

Our support team<\/a> is always here to assist you when you need it. However, there are situations where even we are unable to undo, like the deletion of a database, or deletion of an important system file. In such situations, we will have to re-install the OS which may result in a potential loss of data.<\/em><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t

\n\t\t\t\t
\n\t\t\t

Initiate a SSH connection to the server<\/h3>\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

First, you need to choose an SSH client.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

1. Mac OS X includes the SSH client Terminal<\/strong>\u00a0by default. Go to\u00a0Application<\/strong>\u00a0>\u00a0Utilities<\/strong>\u00a0>\u00a0Terminal<\/strong><\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\"mac\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t\t\t\t\t\t\t\t\t\"mac\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

Run the below command to connect to your Linux server via SSH (port 22):<\/p>

[root@client ~]# ssh root@example.domain.com -p22 The authenticity of host 'example.domain.com (192.168.2.155)' can't be established. RSA key fingerprint is 45:83:45:4a:e3:29:7e:fa:f3:c3:7d:64:ea:3a:6f:58. Are you sure you want to continue connecting (yes\/no)? yes Warning: Permanently added 'example.domain.com,192.168.2.155' (RSA) to the list of known hosts. root@example.domain.com's password:<\/pre>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t
\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t

2. \u00a0 \u00a0Windows-based Operating Systems do not come with an SSH client by default. You can use PuTTY<\/a> that can be downloaded.<\/p>\t\t\t\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t

\n\t\t\t\t
\n\t\t\t\t\t\t\t\t
\n\t\t\t\t