You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
excerpt: "Find out how to connect and use SSH access on an OVHcloud web hosting plan"
4
-
updated: 2024-01-30
2
+
title: "Web Hosting - How to use SSH access"
3
+
excerpt: "Find out how to log in and use SSH access on an OVHcloud Web Hosting plan"
4
+
updated: 2025-09-08
5
5
---
6
6
7
+
<style>
8
+
details>summary {
9
+
color:rgb(33, 153, 232) !important;
10
+
cursor: pointer;
11
+
}
12
+
details>summary::before {
13
+
content:'\25B6';
14
+
padding-right:1ch;
15
+
}
16
+
details[open]>summary::before {
17
+
content:'\25BC';
18
+
}
19
+
</style>
20
+
7
21
## Objective
8
22
9
-
OVHcloud web hosting plans provide you with access to a storage space you can use to put your website and application files online. You can access this space using an FTP or SSH user account and password.
23
+
OVHcloud web hosting plans provide you with access to a storage space you can use to put your website and application files online. You can access this space via FTP or SSH credentials.
10
24
11
25
**Find out how to connect and use SSH access on an OVHcloud web hosting plan.**
12
26
13
27
## Requirements
14
28
15
-
- an [OVHcloud web hosting plan](/links/web/hosting) with SSH access
16
-
- the login credentials required to connect to your storage space via SSH
17
-
- access to the `Web Cloud`{.action} section of the [OVHcloud Control Panel](/links/manager)
29
+
- An [OVHcloud web hosting plan](/links/web/hosting) with SSH access.
30
+
- Access to the `Web Cloud`{.action} section of the [OVHcloud Control Panel](/links/manager).
18
31
19
32
> [!warning]
20
33
>
21
34
> SSH access to an OVHcloud web hosting plan is possible from the [Pro plan](/links/web/hosting-compare) and above.
22
35
23
36
## Instructions
24
37
25
-
### Step 1: Ensure that SSH access is enabled <aname="sshcheck"></a>
26
-
27
-
Log in to the [OVHcloud Control Panel](/links/manager), go to the `Web Cloud`{.action} section, then click on `Hosting`{.action}. Select the name of the web hosting plan, and click on the `FTP - SSH`{.action} tab. The information associated with your storage space will now appear.
28
-
29
-
Find the table in the ‘SSH’ column to check if the SSH user (or ‘login’) concerned has SSH access enabled. A ‘Disabled’ label will be present if this is not the case.
If SSH access is disabled, click `...`{.action} to the right of the user concerned, then `Modify`{.action}. In the window that pops up, enable SSH access, then confirm the modification. If you cannot enable it, ensure that your [OVHcloud web hosting plan](/links/web/hosting) offers SSH access.
34
-
35
-
### Step 2: Retrieve your connection information <aname="sshlogin"></a>
36
-
37
-
To log in to your storage space via SSH, find the information you need in the `FTP - SSH`{.action} tab:
38
-
39
-
-**Active** SSH user: Locate it in the “**Login**” column of the table. As a reminder, the [user’s SSH access must be enabled](#sshcheck).
40
-
-**SSH** user password: If you have forgotten this password, you can change it by clicking `...`{.action}, then `Change password`{.action}.
41
-
-**SSH** server address: Locate the “**SSH** server” comment.
42
-
-**SSH** server connection port: Locate the “**SSH** Port” comment
43
-
44
-
### Step 3: Log in to your storage space via SSH
45
-
46
-
To log in via SSH, use a terminal to interact directly with your storage space via command lines.
38
+
To log in and use SSH access to your web hosting plan, you will need the following:
39
+
40
+
- the active SSH user;
41
+
- the password associated with this SSH user;
42
+
- the SSH server address of your web hosting plan;
43
+
- the connection port to your web hosting plan’s SSH server.
44
+
45
+
### 1 - Make sure that SSH access is enabled for the SSH user you have chosen <aname="user-ssh-enablement"></a>
46
+
47
+
Click on the tabs below to view each of the **4** steps in succession.
48
+
49
+
> [!tabs]
50
+
> **Step 1**
51
+
>>
52
+
>> Log in to the [OVHcloud Control Panel](/links/manager), then go to the `Web Cloud`{.action} section.
>> On the new page, the information related to your storage space will appear.
71
+
>>
72
+
>> In the table, locate the `SSH` column to check that the SSH user (in the `Login` column of the table) concerned has SSH access enabled. If this is not the case, the words `Disabled` will appear.
>> If the SSH access of the user concerned is `Disabled` in the table, perform the following steps:
77
+
>>
78
+
>> - 1 : Click the `...`{.action} button to the right of the user’s line, then `Edit`{.action}.
79
+
>> - 2 : In the window that pops up, in the `Connection protocols` section, select the `FTP, SFTP and SSH`{.action} choice, then click `Next`{.action}.
80
+
>> - 3: Check the summary of the requested change, then click `Confirm`{.action}.
81
+
>>
82
+
>> > If you cannot enable it, please ensure that [your OVHcloud web hosting plan](/links/web/hosting) has SSH access.
83
+
84
+
### 2 - Retrieve the information you need to log in via SSH <aname="sshlogin"></a>
85
+
86
+
Click on the tabs below to view each of the **4** steps in succession.
87
+
88
+
>> [!tabs]
89
+
> **Step 1**
90
+
>>
91
+
>> Log in to the [OVHcloud Control Panel](/links/manager), then go to the `Web Cloud`{.action} section.
>> On the new page, retrieve the elements described in the following table:
110
+
>>
111
+
>> |Element|Description|
112
+
>> |---|---|
113
+
>> |**SSH server address**| Locate `SSH server`. It is in the form `ssh.clusterXXX.hosting.ovh.net` (where each of the 3 `X` corresponds to a number between `0` and `9`).|
114
+
>> |**SSH server connection port**| Locate `SSH port`. The default SSH port number is `22`.|
115
+
>> |**Active SSH user**| In the table at the bottom of the page, find them in the `Login` column.<br>As a reminder, this user must [have active SSH access](#user-ssh-enablement).|
116
+
>> |**SSH user password**| If you have forgotten this password, click the `...`{.action} button to the right of the row corresponding to the user concerned in the table at the bottom of the page, then `Change password`{.action}.|
117
+
118
+
### 3 - Log in to your Web Hosting plan’s storage space via SSH
119
+
120
+
To connect via SSH, use a terminal to interact directly with your storage space via command lines.
47
121
48
122
> [!primary]
49
123
>
50
-
> This tool is installed by default on macOS, Linux, and Windows 10. With an older Windows environment, you will need to install a program like [PuTTY](/pages/web_cloud/web_hosting/ssh_using_putty_on_windows), or add the OpenSSH feature.
124
+
> Command terminals are installed by default on macOS, Linux and Windows 10. An older Windows environmentwill require the installation of software such as [PuTTY](/pages/web_cloud/web_hosting/ssh_using_putty_on_windows) or the addition of OpenSSH functionality.
51
125
52
-
There are now two ways of connecting to your storage space, depending on the method you use:
126
+
There are now two ways of connecting to your web hosting plan via SSH.
53
127
54
-
#### 3.1 From a terminal
128
+
**Please click on your preferred connection method below to see explanations.**
129
+
130
+
/// details | From a terminal
55
131
56
132
> [!warning]
133
+
>
57
134
> There is no superuser (or root) access via SSH on our shared hosting plans.
58
135
59
-
Once you have opened the terminal, use the following command, replacing the ‘yourlogin’, ‘ssh.cluster000.hosting.ovh.net’ and ‘22’ elements with those corresponding to your SSH credentials.
136
+
Once the terminal is open, use the following command, replacing the `yourlogin`, `ssh.clusterXXX.hosting.ovh.net` and `22` elements with those corresponding to your SSH credentials.
When you run the command, you will be prompted to enter the SSH user password. Once you have connected, follow the next step: [Interact with your storage space via SSH](./#step-4-interact-with-your-storage-space-via-ssh).
142
+
After sending the command, you will be prompted to enter the SSH user password.
Open your software application (e.g. PuTTY), and enter your SSH connection details. This action will vary depending on the application you choose to use, so we cannot go into further detail on this in the guide. As a reminder, you will need to enter the following information:
148
+
/// details | From a software application
72
149
73
-
-**SSH** server: Enter the SSH server address you retrieved during [step 2](#sshlogin). Depending on which software you are using, the field may be labelled as "Server address" or "Host Name".
74
-
-**Connection port**: Enter the SSH connection port you retrieved during [step 2](#sshlogin).
75
-
-**SSH** login: Enter the SSH user. Depending on the software application you use, this field may be labelled as “Login” or “Username”.
76
-
-**SSH** user password: Enter the password associated with the SSH login. Depending on which software you are using, the field should be labelled as "Password".
150
+
Once you have opened the software (e.g. PuTTY), enter your SSH connection details. Since this procedure involves several steps, we cannot detail this in this documentation. Here is a reminder of the information you will need to enter:
77
151
78
-
Once you have connected, move on to the next step.
152
+
-**SSH server**: Enter the SSH server address retrieved in the [part 2](#sshlogin). Depending on the software you are using, the domain name may look like “Server Address” or “Hostname”.
153
+
-**Connection port**: Enter the SSH connection port retrieved in [part 2](#sshlogin).
154
+
-**SSH login**: Enter the SSH user. Depending on the software you are using, the domain name may look like “ID”, “Login” or even “Username”.
155
+
-**SSH user password**: Enter the password associated with the SSH login.
79
156
80
-
### Step 4: Interact with your storage space via SSH
157
+
///
81
158
82
-
To interact with your storage space, you can use commands, which each have a direct meaning. Use the list below if you need to. Please note that **this list is not exhaustive**.
159
+
Once you have logged in, continue to the next section.
160
+
161
+
### 4 - Interact with your storage space via SSH <aname="ssh-using"></a>
162
+
163
+
To interact with your storage space, you will need to use commands. These have a direct meaning derived from English. Use the list below if you need to. Important: **this information is not exhaustive**.
83
164
84
165
|Command|Meaning|Description|
85
166
|---|---|---|
@@ -93,34 +174,32 @@ To interact with your storage space, you can use commands, which each have a dir
93
174
|touch `arg`|Touch|Creates an empty file with the name mentioned in the `arg` argument, if a file with this name does not already exist.|
94
175
|rm `arg`|Remove|Removes the file mentioned in the `arg` argument.|
95
176
|rm -r `arg`|Remove|Removes the directory mentioned as an `arg` argument, as well as all of its contents, recursively.|
96
-
|mv `arg1``arg2`|Move|Renames or moves an element (specified as `arg1`) to a new area (specified as `arg2`).|
177
+
|mv `arg1``arg2`|Move|Renames or moves an element (specified as `arg1`) to a new area (specified as `arg2`).|
97
178
98
-
You can also run a command to launch a script using a specific PHP version. E.g. for PHP version 7.1, use the following command, and adapt the elements to match your details.
179
+
You can also launch a script using a specific PHP version. For example, for PHP version 7.1, use the following command. Adapt its elements to your personal situation.
99
180
100
181
```sh
101
182
/usr/local/php7.1/bin/php myscript.php
102
183
```
103
184
104
-
Depending on the PHP version you want to use, the runtime environment may need to be modified to ensure that there are no compatibility issues. Please refer to our documentation "[Web Hosting : environment, PHP version, .ovhconfig](/pages/web_cloud/web_hosting/configure_your_web_hosting)".
185
+
Depending on the PHP version you want to use, the runtime environment may need to be modified for compatibility reasons. Refer to our documentation “[Web Hosting - Environment, PHP version, .ovhconfig](/pages/web_cloud/web_hosting/configure_your_web_hosting)” to find out more.
105
186
106
187
> [!primary]
107
188
>
108
-
> Files and folders can also be copied using the **S**ecure **C**opy **P**protocol (**SCP**).
109
-
> This protocol uses the SSH protocol to duplicate content securely between:
110
-
>
111
-
> - A local computer/device and a remote server.
112
-
> - A remote server and a local computer/device.
113
-
> - Two remote servers.
189
+
> Files and/or folders can also be copied using the **S**ecure **C**opy **P**rotocol (**SCP**).
190
+
> This protocol uses SSH protocol to securely duplicate content between:
114
191
>
115
-
> Find more information on using the `scp` command with our OVHcloud web hosting plans in our guide "[Web Hosting - Copying files with the SCP command](/pages/web_cloud/web_hosting/using-scp-command)"
192
+
> - a local computer/device and a remote server
193
+
> - two remote servers
116
194
>
195
+
> Find more information on using the `scp` command with our OVHcloud web hosting plans in our guide “[Web Hosting - Copy files using SCP command](/pages/web_cloud/web_hosting/using-scp-command)”.
0 commit comments