Do you prefer to manage your web hosting from the command line? Then use SSH. It gives you a secure connection to your hosting account, for example to run scripts or use Git.
Before you start
Web hosting needs to be on for your plan. Not on yet? Here's how to turn on web hosting. You also need an SSH key on your computer.
Turn on SSH
Step 1: Log in to your dashboard, click your plan in the list on the left and open the Web hosting tab. Under Web hosting options, turn on the switch next to SSH.

Step 2: The switch is now on.

Add your SSH key in DirectAdmin
Step 3: Log in to DirectAdmin. In the menu on the left, open Advanced Features and click SSH Keys.

Step 4: Click Paste key.

Step 5: Paste your public key in the Line field. It starts with ssh-ed25519 or ssh-rsa. Then click Create.

Connect with SSH
You need your hosting username and the server name. You'll find both under Web hosting information. The server name is the address of Go to control panel, without "https://" and ":2222". So if DirectAdmin is at https://da005.site.eu:2222, the server name is da005.site.eu.

Then type this in your terminal, with your own username and server name:
ssh username@da005.site.eu
You don't need a password: your SSH key gives you access. You can also use your own domain name as the server name, once your domain name points to your web hosting.
Prefer to transfer files securely? Read about SFTP.






