{"id":18253,"date":"2026-09-25T20:57:30","date_gmt":"2026-09-25T17:57:30","guid":{"rendered":"https:\/\/www.hyyat.com\/knowledgebase\/how-to-connect-to-a-server-via-ssh\/"},"modified":"2026-09-25T20:57:30","modified_gmt":"2026-09-25T17:57:30","password":"","slug":"how-to-connect-to-a-server-via-ssh","status":"publish","type":"docs","link":"https:\/\/www.hyyat.com\/en\/knowledgebase\/how-to-connect-to-a-server-via-ssh\/","title":{"rendered":"How to Connect to a Server via SSH from Windows, Mac and Linux"},"content":{"rendered":"<div class=\"hy-tldr\" dir=\"ltr\" style=\"background:#f6f7fb;border-left:4px solid #d83954;border-radius:10px;padding:14px 18px;margin:0 0 20px;line-height:1.8;text-align:left\"><strong>In short:<\/strong> SSH is a secure protocol that lets you connect to your server remotely and run commands over an encrypted connection. On Mac or Linux, run ssh user@server-ip in the Terminal; on Windows, use the same command in PowerShell or use the PuTTY app.<\/div>\n<h2>What you need<\/h2>\n<ul>\n<li>The server IP address or hostname.<\/li>\n<li>A username, such as root or your cPanel username.<\/li>\n<li>A password or an SSH key.<\/li>\n<li>The SSH port (22 by default, unless it was changed).<\/li>\n<\/ul>\n<h2>Connect from Mac or Linux<\/h2>\n<ol>\n<li>Open the <strong>Terminal<\/strong> app.<\/li>\n<li>Type <code>ssh root@203.0.113.10<\/code>, replacing the user and IP with yours. If the port is not 22, add <code>-p 2222<\/code> with your port.<\/li>\n<li>The first time, type <strong>yes<\/strong> to trust the server fingerprint.<\/li>\n<li>Enter your password. Nothing appears while you type; that is normal.<\/li>\n<\/ol>\n<h2>Connect from Windows<\/h2>\n<p><strong>Option 1: PowerShell.<\/strong> Windows 10 and 11 include an SSH client. Open PowerShell and use the same command: <code>ssh root@203.0.113.10<\/code>.<\/p>\n<p><strong>Option 2: PuTTY.<\/strong> Download PuTTY, enter the server IP in <em>Host Name<\/em>, set the port, choose <em>SSH<\/em> and click <em>Open<\/em>. Then log in with your username and password.<\/p>\n<h2>Use SSH keys instead of passwords<\/h2>\n<p>SSH keys are safer than passwords. Create a key pair on your computer with <code>ssh-keygen<\/code>, then copy the public key to the server with <code>ssh-copy-id root@203.0.113.10<\/code>. After that you can log in without typing a password.<\/p>\n<h2>Security tips<\/h2>\n<ul>\n<li>Disable password login for root once your key works.<\/li>\n<li>Consider changing the default SSH port.<\/li>\n<li>Use a firewall such as CSF to block repeated failed logins.<\/li>\n<\/ul>\n<p>Prefer not to manage the server yourself? Our <a href=\"https:\/\/www.hyyat.com\/en\/server-management\/\">server management<\/a> team can secure and maintain it for you.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In short: SSH is a secure protocol that lets you connect to your server remotely and run commands over an encrypted connection. On Mac or Linux, run ssh user@server-ip in the Terminal; on Windows, use the same command in PowerShell or use the PuTTY app. What you need The server IP address or hostname. A [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"closed","template":"","meta":{"_eb_attr":"","inline_featured_image":false,"wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","_templately_pack_id":"","_templately_imported_at":"","_templately_source":"","_templately_import_session_id":"","footnotes":""},"doc_category":[2733],"doc_tag":[],"class_list":["post-18253","docs","type-docs","status-publish","hentry","doc_category-servers-without-control-panel"],"year_month":"2026-09","word_count":259,"total_views":"1","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"ahmed fathy","author_nicename":"ahmed-fathy","author_url":"https:\/\/www.hyyat.com\/en\/author\/ahmed-fathy\/"},"doc_category_info":[{"term_name":"servers without control panel","term_url":"https:\/\/www.hyyat.com\/en\/kb\/servers-without-control-panel\/"}],"doc_tag_info":[],"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18253","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/comments?post=18253"}],"version-history":[{"count":0,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/docs\/18253\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/media?parent=18253"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_category?post=18253"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hyyat.com\/en\/wp-json\/wp\/v2\/doc_tag?post=18253"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}