<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://kb.acenet.us/index.php?action=history&amp;feed=atom&amp;title=Connect_to_your_server_via_SSH</id>
	<title>Connect to your server via SSH - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://kb.acenet.us/index.php?action=history&amp;feed=atom&amp;title=Connect_to_your_server_via_SSH"/>
	<link rel="alternate" type="text/html" href="https://kb.acenet.us/index.php?title=Connect_to_your_server_via_SSH&amp;action=history"/>
	<updated>2026-10-27T21:26:09Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.6</generator>
	<entry>
		<id>https://kb.acenet.us/index.php?title=Connect_to_your_server_via_SSH&amp;diff=2991&amp;oldid=prev</id>
		<title>Docs admin: Rewritten for current Acenet services (Main Page refresh)</title>
		<link rel="alternate" type="text/html" href="https://kb.acenet.us/index.php?title=Connect_to_your_server_via_SSH&amp;diff=2991&amp;oldid=prev"/>
		<updated>2026-10-27T18:21:31Z</updated>

		<summary type="html">&lt;p&gt;Rewritten for current Acenet services (Main Page refresh)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;SSH gives you a secure command line on your server, so you can run commands, edit files and install software. This guide covers connecting from Windows, Mac and Ubuntu Desktop. All three include an SSH program, so you don&amp;#039;t need to install anything.&lt;br /&gt;
&lt;br /&gt;
In the examples below, replace &amp;#039;&amp;#039;203.0.113.10&amp;#039;&amp;#039; with your server&amp;#039;s IP address or hostname, and &amp;#039;&amp;#039;root&amp;#039;&amp;#039; with the user you log in as.&lt;br /&gt;
&lt;br /&gt;
== What you need ==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Cloud server or dedicated server:&amp;#039;&amp;#039;&amp;#039; your server&amp;#039;s IP address, which is shown on the server&amp;#039;s page in the Client Area, and the root password or an SSH key. If you don&amp;#039;t have the root password, a cloud server&amp;#039;s &amp;#039;&amp;#039;&amp;#039;Reset Root Password&amp;#039;&amp;#039;&amp;#039; button sets a new one. See [[Manage your cloud server]].&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;cPanel account (shared or reseller hosting):&amp;#039;&amp;#039;&amp;#039; your cPanel username, your server&amp;#039;s hostname and an SSH key. Our shared servers accept SSH keys only, not passwords, and SSH must be turned on for your account. If it isn&amp;#039;t, please [[Open a support ticket|open a support ticket]]. To add your key, see [[#Log in with an SSH key|Log in with an SSH key]] below.&lt;br /&gt;
&lt;br /&gt;
SSH uses port 22 unless your server has been set up with a different port. In that case, add &amp;lt;code&amp;gt;-p&amp;lt;/code&amp;gt; and the port number to the commands below, for example &amp;lt;code&amp;gt;ssh -p 2222 root@203.0.113.10&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Open a terminal ==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Windows 10 and 11:&amp;#039;&amp;#039;&amp;#039; right-click the Start button and choose &amp;#039;&amp;#039;&amp;#039;Terminal&amp;#039;&amp;#039;&amp;#039; (or &amp;#039;&amp;#039;&amp;#039;Windows PowerShell&amp;#039;&amp;#039;&amp;#039;).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Mac:&amp;#039;&amp;#039;&amp;#039; open &amp;#039;&amp;#039;&amp;#039;Terminal&amp;#039;&amp;#039;&amp;#039; from Applications &amp;gt; Utilities, or search for &amp;quot;Terminal&amp;quot; with Spotlight (Command + Space).&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Ubuntu Desktop:&amp;#039;&amp;#039;&amp;#039; press &amp;#039;&amp;#039;&amp;#039;Ctrl + Alt + T&amp;#039;&amp;#039;&amp;#039;, or search for &amp;quot;Terminal&amp;quot; in Activities.&lt;br /&gt;
&lt;br /&gt;
== Connect ==&lt;br /&gt;
&lt;br /&gt;
Type this command and press Enter:&lt;br /&gt;
 ssh root@203.0.113.10&lt;br /&gt;
&lt;br /&gt;
The first time you connect, SSH shows the server&amp;#039;s fingerprint and asks whether to continue. Type &amp;#039;&amp;#039;&amp;#039;yes&amp;#039;&amp;#039;&amp;#039; and press Enter. SSH remembers the server, so it only asks once. If it ever warns that the server&amp;#039;s identification has changed when you haven&amp;#039;t reinstalled the server, don&amp;#039;t continue, and [[Open a support ticket|open a support ticket]].&lt;br /&gt;
&lt;br /&gt;
Enter your password when asked. Nothing appears on screen while you type it; that&amp;#039;s normal. You&amp;#039;re now logged in. Type &amp;lt;code&amp;gt;exit&amp;lt;/code&amp;gt; to disconnect.&lt;br /&gt;
&lt;br /&gt;
== Log in with an SSH key ==&lt;br /&gt;
&lt;br /&gt;
An SSH key is safer than a password and saves you typing it. You create a pair of keys on your computer: a private key, which never leaves your computer, and a public key, which you put on the server.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;1.&amp;#039;&amp;#039;&amp;#039; Create the key (the same command works on Windows, Mac and Ubuntu). Press Enter to accept the default file name, and choose a passphrase to protect the key:&lt;br /&gt;
 ssh-keygen -t ed25519&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;2.&amp;#039;&amp;#039;&amp;#039; Add the public key to your server:&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Mac and Ubuntu:&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
 ssh-copy-id root@203.0.113.10&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Windows&amp;#039;&amp;#039;&amp;#039; (PowerShell):&lt;br /&gt;
 type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh root@203.0.113.10 &amp;quot;mkdir -p ~/.ssh &amp;amp;&amp;amp; chmod 700 ~/.ssh &amp;amp;&amp;amp; cat &amp;gt;&amp;gt; ~/.ssh/authorized_keys &amp;amp;&amp;amp; chmod 600 ~/.ssh/authorized_keys&amp;quot;&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;cPanel account:&amp;#039;&amp;#039;&amp;#039; show the public key with &amp;lt;code&amp;gt;cat ~/.ssh/id_ed25519.pub&amp;lt;/code&amp;gt; (on Windows, &amp;lt;code&amp;gt;type $env:USERPROFILE\.ssh\id_ed25519.pub&amp;lt;/code&amp;gt;) and copy it. In cPanel, go to &amp;#039;&amp;#039;&amp;#039;Security&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;SSH Access&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Manage SSH Keys&amp;#039;&amp;#039;&amp;#039; &amp;gt; &amp;#039;&amp;#039;&amp;#039;Import Key&amp;#039;&amp;#039;&amp;#039;, paste it into the public key box, and click &amp;#039;&amp;#039;&amp;#039;Import&amp;#039;&amp;#039;&amp;#039;. Then click &amp;#039;&amp;#039;&amp;#039;Manage&amp;#039;&amp;#039;&amp;#039; next to the key, and &amp;#039;&amp;#039;&amp;#039;Authorize&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;3.&amp;#039;&amp;#039;&amp;#039; Connect as before. SSH now uses your key instead of asking for the server&amp;#039;s password:&lt;br /&gt;
 ssh root@203.0.113.10&lt;br /&gt;
&lt;br /&gt;
Once key login works on your own server, you can turn off password logins for extra security. See [[Secure your cPanel server]].&lt;br /&gt;
&lt;br /&gt;
== Copy files over SSH ==&lt;br /&gt;
&lt;br /&gt;
The same connection can copy files. From your computer&amp;#039;s terminal:&lt;br /&gt;
 scp myfile.zip root@203.0.113.10:/root/&lt;br /&gt;
 scp root@203.0.113.10:/root/backup.tar.gz .&lt;br /&gt;
&lt;br /&gt;
For a graphical program, FileZilla and WinSCP (Windows), or Cyberduck (Mac), connect using SFTP with the same details. See [[Upload files to your website]].&lt;br /&gt;
&lt;br /&gt;
== If you can&amp;#039;t connect ==&lt;br /&gt;
&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Connection timed out:&amp;#039;&amp;#039;&amp;#039; check the IP address and port. Your IP address may also be blocked after too many failed logins.&lt;br /&gt;
* &amp;#039;&amp;#039;&amp;#039;Permission denied:&amp;#039;&amp;#039;&amp;#039; check the username and password or key. On a cPanel account, make sure the key is authorized in &amp;#039;&amp;#039;&amp;#039;Manage SSH Keys&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
* For both, and for mistakes in the server&amp;#039;s SSH or firewall settings, see [[Locked out of your server]].&lt;br /&gt;
&lt;br /&gt;
[[Category:WHM]]&lt;/div&gt;</summary>
		<author><name>Docs admin</name></author>
	</entry>
</feed>