{"version":"https://jsonfeed.org/version/1.1","title":"Vic Demuzere - macOS","home_page_url":"https://vic.demuzere.be/articles/tags/mac/","feed_url":"https://vic.demuzere.be/articles/tags/mac/feed.json","description":"Blog posts tagged macOS by Vic Demuzere","language":"en","items":[{"id":"https://vic.demuzere.be/articles/easy-ssh-connections-combell-shared-hosting/","content_html":"<p>When trying to connect over SSH to your <a href=\"https://www.combell.com/en/hosting/web-hosting\" title=\"Combell shared hosting\">Combell shared hosting</a> account, the control panel explains how to connect using one of these two options:</p>\n<ul>\n<li><code>ssh yoursitebe@ssh.yoursite.be</code></li>\n<li><code>ssh yoursitebe@ssh123.webhosting.be</code></li>\n</ul>\n<p>The first one <strong>may not work</strong> if your DNS records are not correct, the second one always works but is hard to remember.\nWith just a small change to our local SSH config, we can use a third option: <strong>simply connect to your domain name</strong>!</p>\n<ul>\n<li><code>ssh yoursite.be</code></li>\n</ul>\n<p>For this to work we have to tell <code>ssh</code> what to do with <code>yoursite.be</code>.</p>\n<h2 id=\"the-local-ssh-config-file\">The local SSH config file<a href=\"#the-local-ssh-config-file\" aria-label=\"Link to heading 'The local SSH config file'\" data-heading-content=\"The local SSH config file\" class=\"anchor\"></a></h2>\n<p>On computers running Linux and macOS, the configuration file can be found at:</p>\n<pre><code>~/.ssh/config\n</code></pre>\n<p>The file (or the <code>.ssh</code> directory) may not exist yet, you can create it manually.</p>\n<p>Inside the file you can specify <code>Host</code> blocks to tell the SSH client what to do with certain hostnames.\nWe'll use our domain name as that's the natural address to connect to when we want to update our website.</p>\n<pre><code>Host yoursite.be\n\tHostName ssh123.webhosting.be\n\tUser yoursitebe\n\nHost othersite.com\n\tHostName ssh472.webhosting.be\n\tUser othersitecom\n</code></pre>\n<p>The correct values for the <code>HostName</code> and <code>User</code> parameters can be found after logging in to the <a href=\"https://my.combell.com\" title=\"Combell control panel\">My Combell control panel</a>.\nNavigate to the correct web hosting account and click the <strong>SSH</strong> menu option on the left.\nYou'll see the <em>SSH host</em> and <em>SSH user name</em> listed there.</p>\n<p>After saving the file, you can connect right away:</p>\n<pre><code>ssh yoursite.be\nLast login: Mon Dec 16 14:28:14 2019 from 178-221-32-24.access.telenet.be\nyoursitebe@com-linssh123:~#\n</code></pre>\n<p>This also works when using <code>scp</code> or <code>rsync</code> to transfer files!</p>\n<div class=\"footer\"><hr><p>Thanks for subscribing to my feed!</p><p>Feel free to e-mail comments or corrections to <a href=\"mailto:vic@demuzere.be?subject=RE%3A%20Easy%20SSH%20connections%20to%20Combell%20shared%20hosting\">vic@demuzere.be</a>.</p></div>","url":"https://vic.demuzere.be/articles/easy-ssh-connections-combell-shared-hosting/","date_published":"2019-12-16T12:13:30Z","date_modified":"2023-11-28T19:55:32Z","language":"en"}]}