{"id":554317,"date":"2023-02-20T21:00:00","date_gmt":"2023-02-20T18:00:00","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-connect-to-an-ssh-server-from-windows-macos-or-linux\/"},"modified":"2023-02-20T21:00:00","modified_gmt":"2023-02-20T18:00:00","slug":"how-to-connect-to-an-ssh-server-from-windows-macos-or-linux","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-connect-to-an-ssh-server-from-windows-macos-or-linux\/","title":{"rendered":"#How to Connect to an SSH Server from Windows, macOS, or Linux"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_84 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a2bf87f2ad13\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a2bf87f2ad13\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-connect-to-an-ssh-server-from-windows-macos-or-linux\/#%E2%80%9CHow_to_Connect_to_an_SSH_Server_from_Windows_macOS_or_Linux%E2%80%9D\" >&#8220;How to Connect to an SSH Server from Windows, macOS, or Linux&#8221;<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-connect-to-an-ssh-server-from-windows-macos-or-linux\/#How_to_SSH_Into_a_Computer_on_Windows\" >How to SSH Into a Computer on Windows<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-connect-to-an-ssh-server-from-windows-macos-or-linux\/#How_to_Use_SSH_on_macOS_or_Linux\" >How to Use SSH on macOS or Linux<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%E2%80%9CHow_to_Connect_to_an_SSH_Server_from_Windows_macOS_or_Linux%E2%80%9D\"><\/span>&#8220;How to Connect to an SSH Server from Windows, macOS, or Linux&#8221;<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<div>\n<figure style=\"width: 1920px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage wp-image-873881 size-full\" data-pagespeed-no-defer=\"\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2017\/06\/52679273174_c93a060c3c_o.jpg?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"A computer running Windows 11\" width=\"1920\" height=\"1080\" data-credittext=\"Hannah Stryker \/ How-To Geek\"\/><figcaption class=\"wp-caption-text\"><span class=\"type:primaryImage imagecredit\">Hannah Stryker \/ How-To Geek<\/span><\/figcaption><\/figure>\n<p>To connect to an SSH server on Windows, install the optional SSH feature and then run &#8220;ssh user@exampleIP&#8221; in PowerShell or the Windows Terminal. On Linux or macOS, open the Terminal and run &#8220;ssh user@exampleIP&#8221;.<\/p>\n<p>An SSH client allows you to connect to a remote computer running an SSH server. The Secure Shell (SSH) protocol is often used for remote terminal connections, allowing you to access a text-mode terminal on a remote computer as if you were sitting of\u00a0it. It can also be used for SSH tunneling,\u00a0SCP file transfers, and other things.<\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"How_to_SSH_Into_a_Computer_on_Windows\"><\/span>How to SSH Into a Computer on Windows<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Windows 10 and Windows 11 now have\u00a0an official SSH client you can install. It\u2019s part of Windows 10 and Windows 11 but is an \u201coptional feature.\u201d<\/p>\n<p>To install the OpenSSH Client on Windows 10 or Windows 11, open the Settings <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">app<\/a>, then navigate to Apps &gt; Apps &amp; Features &gt; Optional Features.\u00a0 Click \u201cAdd a Feature,\u201d then scroll through the optional features until you locate \u201cOpenSSH Client.\u201d Tick the box, then click \u201cInstall.\u201d<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\" alignnone wp-image-873091 size-full\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2017\/06\/Optional-feature.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" width=\"553\" height=\"500\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>After it is installed, open PowerShell, then use the SSH command to connect to a server. For example:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-852764\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2017\/06\/SSH-install.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The SSH command running in PowerShell on Windows. \" width=\"730\" height=\"312\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>If you want something with a graphical user interface (GUI) and more flexibility, try out PuTTY instead.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>5 Cool Things You Can Do With an SSH Server<\/em><\/strong><\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/redirect.viglink.com\/?key=e7eab128eb8d1c53e14db14f4c632447&amp;u=https%3A%2F%2Fwww.chiark.greenend.org.uk%2F%7Esgtatham%2Fputty%2Flatest.html&amp;cuid=xid:{xid}&amp;___trxnet=vg\">Download PuTTY<\/a> and launch it to get started. You can download either an installer that included PuTTY and related utilities. or a putty.exe file that can function as a portable application.<\/p>\n<p>Type\u00a0the\u00a0host name or IP address of the SSH server into the \u201cHost name (or IP address)\u201d box. Ensure the port number in the \u201cPort\u201d box matches the port number the SSH server requires. SSH servers use port 22 by default, but servers are often configured to use other port numbers instead. Click \u201cOpen\u201d to connect.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-311289\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2017\/06\/img_5940441061fd2.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"PuTTY is a fully featured SSH prograam that enables SSH on Windows. It can be customized extensively. \" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll see a security alert the first time you try to connect to a server. This tells you that you haven\u2019t previously connected to this server. That\u2019s expected, so click \u201cOK\u201d to continue.<\/p>\n<p>If you see this warning in the future after already having connected to the server once, that indicates the server\u2019s encryption key fingerprint is different. Either the server administrator has changed it or someone is intercepting your traffic and trying to trick you into connecting to a malicious, imposter SSH server. Be careful!<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-311290\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2017\/06\/img_594044432f6fd.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll be prompted to enter the username and password for your account on the SSH server. After you do, you\u2019ll be connected. Just close the window to end the SSH connection.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-311297\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2017\/06\/img_59404506cf47a.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"PuTTY connected to the &quot;geek&quot; user on the localhost server. \" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>There\u2019s a lot more you can do with PuTTY. For example, if you need to use a private key file to authenticate with the SSH server, you\u2019ll find this option at Connection &gt; SSH &gt; Auth in the PuTTY Configuration window that appears when you launch the application. Consult <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/the.earth.li\/~sgtatham\/putty\/0.69\/htmldoc\/\">PuTTY\u2019s manual<\/a> for more information. Here\u2019s a fun fact: SSH private keys are technically called PEM files.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Manage an SSH Config File in Windows and Linux<\/em><\/strong><\/p>\n<h2 role=\"heading\" aria-level=\"2\"><span class=\"ez-toc-section\" id=\"How_to_Use_SSH_on_macOS_or_Linux\"><\/span>How to Use SSH on macOS or Linux<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>UNIX-based operating systems like macOS and Linux include a built-in SSH command that works pretty much the same everywhere.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>How to Install and Use the Linux Bash Shell on Windows 10<\/em><\/strong><\/p>\n<p>To connect to an SSH server from one of these operating systems, first open a Terminal window. On a Mac, you\u2019ll find this at Finder &gt; Applications &gt; Utilities &gt; Terminal. On a Linux desktop, look for a Terminal shortcut in the applications menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-852785\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2017\/06\/Terminal-macOS.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Terminal displayed in Finder &gt; Applications on macOS Ventura. \" width=\"730\" height=\"457\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>To connect to an SSH server, type the following command into the terminal, replacing <code>username <\/code> with your username on the SSH server and <code> ssh.server.com<\/code> with the host name or IP address of the SSH server:<\/p>\n<pre>ssh username@ssh.server.com<\/pre>\n<p>This command will connect to the SSH server on port 22, which is the default. To specify a different port, add <code>-p<\/code> to the end of the command followed by the port number you want to connect on,\u00a0like so:<\/p>\n<pre>ssh username@ssh.server.com -p 2222<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-852787\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2017\/06\/macbook-air-SSH.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"An example SSH command run on macOS. \" width=\"730\" height=\"365\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll see a message asking you to confirm the identity of the server the first time you connect. If this is actually the first time you have connected to the server, the message is normal and you can type \u201cyes\u201d to continue.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-852788\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2017\/06\/ubuntu-ssh.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The first-time warning about connecting to a SSH server. \" width=\"730\" height=\"289\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>If you\u2019ve previously connected to the server and see this message, this indicates the server administrator has changed the key fingerprint or you\u2019re being tricked into connecting to an imposter server. Be careful!<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>The Best Ways to Secure Your SSH Server<\/em><\/strong><\/p>\n<p>You\u2019ll\u00a0by prompted to type the password the user account requires on the SSH server before continuing. Once you have, you\u2019ll be connected. Close the window or type \u201cexit\u201d and press Enter to end the SSH connection.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-852793\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2017\/06\/ssh-key-changed.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"The warning you will see if a server's identification has changed since the last time you connected. Proceed with caution unless you know why the change has occurred. \" width=\"730\" height=\"314\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You\u2019ll find more information on using the ssh command in the SSH manual page. You\u00a0can access it by typing <code>man ssh<\/code>\u00a0at the terminal, or by viewing it\u00a0<a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/man.openbsd.org\/ssh\">in your web browser<\/a>. If you\u2019re running your own SSH Server, make sure you lock it down to improve your security.<\/p>\n<p><strong>RELATED:<\/strong> <strong><em>5 Cool Things You Can Do With an SSH Server<\/em><\/strong><\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/311287\/how-to-connect-to-an-ssh-server-from-windows-macos-or-linux\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;How to Connect to an SSH Server from Windows, macOS, or Linux&#8221; Hannah Stryker \/ How-To Geek To connect to an SSH server on Windows, install the optional SSH feature and then run &#8220;ssh user@exampleIP&#8221; in PowerShell or the Windows Terminal. On Linux or macOS, open the Terminal and run &#8220;ssh user@exampleIP&#8221;. An SSH client&#8230;<\/p>\n","protected":false},"author":1,"featured_media":554318,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2017\/06\/52679273174_c93a060c3c_o.jpg?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-554317","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/554317","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=554317"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/554317\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/554318"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=554317"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=554317"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=554317"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}