<?xml version="1.0" encoding="UTF-8"?><feed xmlns="http://www.w3.org/2005/Atom"><id>https://vic.demuzere.be/articles/tags/mac/atom.xml</id><title>Vic Demuzere - macOS</title><link href="https://vic.demuzere.be/articles/tags/mac/atom.xml" rel="self" type="application/atom+xml" /><link href="https://vic.demuzere.be/articles/tags/mac/" rel="alternate" type="text/html" /><updated>2019-12-16T12:13:30+00:00</updated><author><name>Vic Demuzere</name></author><entry><id>https://vic.demuzere.be/articles/easy-ssh-connections-combell-shared-hosting/</id><title>Easy SSH connections to Combell shared hosting</title><link href="https://vic.demuzere.be/articles/easy-ssh-connections-combell-shared-hosting/" rel="alternate" /><updated>2023-11-28T19:55:32+00:00</updated><published>2019-12-16T12:13:30+00:00</published><content type="html"><![CDATA[<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>
<ul>
<li><code>ssh yoursitebe@ssh.yoursite.be</code></li>
<li><code>ssh yoursitebe@ssh123.webhosting.be</code></li>
</ul>
<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.
With just a small change to our local SSH config, we can use a third option: <strong>simply connect to your domain name</strong>!</p>
<ul>
<li><code>ssh yoursite.be</code></li>
</ul>
<p>For this to work we have to tell <code>ssh</code> what to do with <code>yoursite.be</code>.</p>
<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>
<p>On computers running Linux and macOS, the configuration file can be found at:</p>
<pre><code>~/.ssh/config
</code></pre>
<p>The file (or the <code>.ssh</code> directory) may not exist yet, you can create it manually.</p>
<p>Inside the file you can specify <code>Host</code> blocks to tell the SSH client what to do with certain hostnames.
We'll use our domain name as that's the natural address to connect to when we want to update our website.</p>
<pre><code>Host yoursite.be
	HostName ssh123.webhosting.be
	User yoursitebe

Host othersite.com
	HostName ssh472.webhosting.be
	User othersitecom
</code></pre>
<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>.
Navigate to the correct web hosting account and click the <strong>SSH</strong> menu option on the left.
You'll see the <em>SSH host</em> and <em>SSH user name</em> listed there.</p>
<p>After saving the file, you can connect right away:</p>
<pre><code>ssh yoursite.be
Last login: Mon Dec 16 14:28:14 2019 from 178-221-32-24.access.telenet.be
yoursitebe@com-linssh123:~#
</code></pre>
<p>This also works when using <code>scp</code> or <code>rsync</code> to transfer files!</p>
<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>]]></content></entry></feed>