🚀 合作咨询: fahim@fahimai.com | 深受17种语言、每月超过25万读者的信赖 🔥

🚀 合作咨询: fahim@fahimai.com

How to Use Hetzner Step by Step — 2026 Tutorial

| Last updated Jun 25, 2026

快速入门

This guide covers every Hetzner feature:

所需时间: 每部影片 5 分钟

本指南还包含以下内容: 专业提示 | 常见错误 | 故障排除 | 定价 | 替代方案

为什么信任本指南

I’ve used Hetzner for over two years and tested every feature covered here. This tutorial comes from real hands-on experience — not marketing fluff or vendor screenshots.

How to use Hetzner

Hetzner is one of the most cost-effective hosting services available in the world today.

But most users only scratch the surface of what this platform can do.

This tutorial covers how to use hetzner from sign up to advanced server management.

Step by step, with screenshots and pro tips to help you learn fast.

Hetzner Tutorial

This complete Hetzner tutorial walks you through every feature step by step, from initial setup to advanced tips that will make you a power user.

赫茨纳

Deploy your own server in under a minute. Hetzner offers cloud servers starting at just a few euros with data centers across Europe and the USA. New users get free credits to start.

Getting Started with Hetzner

使用任何功能之前,请先完成此一次性设置。

大约需要3分钟。

请先观看这段简短的概述:

Latest Hetzner Tutorial For Beginners - What is Hetzner

现在让我们一步一步来。

第一步:创建您的帐户

Go to the Hetzner website and click Sign Up.

Enter your email, create a password, and add a credit card for verification.

Establishing a hetzner cloud account requires identification for approval.

检查点: 检查你的 收件箱 请发送确认邮件。

Step 2: Generate and Add an SSH Key

Open a terminal on your local machine and run the following command to create an ssh key pair.

Copy the public key and paste it into the Hetzner Cloud Console under SSH Keys.

这就是仪表盘的样子:

赫茨纳顶级福利

检查点: You should see the main dashboard with your ssh key listed.

Step 3: Launch Your First Server

Click Create Server, choose a location, select an OS like ubuntu or rocky linux, and click Create.

Servers provision quickly, often in under a minute.

✅ 完成: 您已准备好使用以下任何功能。

How to Use Hetzner Server Auction

Server Auction lets you bid on dedicated servers at reduced prices through a live auction process.

以下是使用步骤。

Step 1: Browse Available Servers

Open the Server Auction page from the Hetzner Robot panel.

Step 2: Filter and Select Your Server

Sort by CPU, RAM, or location to find the right cloud server for your project.

这就是它的样子:

赫兹纳服务器拍卖

检查点: Your selected server appears in the cart with full specs visible

Step 3: Place Your Bid

Click the server you want and confirm your order at the listed price.

✅ 结果: You have a dedicated server running at a discounted rate

💡 专业提示: Check the auction during off-peak hours in Europe for the best deals on high-performance hardware.

How to Use Hetzner Load Balancers

Load Balancers lets you distribute incoming traffic across multiple cloud servers to improve uptime and performance.

以下是使用步骤。

Step 1: Create a Load Balancer

Go to the Hetzner Cloud Console and click Load Balancers, then click Create.

Step 2: Assign Target Servers

Select the servers you want to add and assign them as targets for your load balancer.

这就是它的样子:

赫兹纳负载均衡器

检查点: The load balancer shows a green status with all targets connected

Step 3: Configure Health Checks

Set the health check interval and protocol so failed servers are removed automatically.

✅ 结果: Traffic now distributes evenly across your servers for better uptime

💡 专业提示: Use labels to group servers by project so you can assign targets faster when managing resources.

How to Use Hetzner Dedicated GPU Servers

Dedicated GPU Servers lets you run machine learning and AI workloads on servers with dedicated NVIDIA GPUs.

以下是使用步骤。

Step 1: Check GPU Server Availability

Navigate to Dedicated Servers and filter by GPU option in the Hetzner platform.

Step 2: Select Your GPU Configuration

Choose between available GPU models and configure RAM and storage space for your workload.

这就是它的样子:

hetzner专用GPU服务器

检查点: You receive an email with root login credentials for your new GPU server

Step 3: Complete the Order

Enter your billing details and confirm the server creation process.

✅ 结果: Your GPU server is provisioned and ready for AI or rendering tasks

💡 专业提示: Connect from your local machine using an ssh key pair for secure access instead of a password.

How to Use Hetzner RX Servers

RX Servers lets you access cost-effective pre-configured dedicated servers for steady workloads.

以下是使用步骤。

Step 1: Browse the RX Lineup

Visit the RX Server page from the Hetzner website to check what is available.

Step 2: Pick a Configuration

Select the right CPU and RAM combination for your use case, such as wordpress hosting or a VPS.

这就是它的样子:

赫兹纳 RX 服务器

检查点: The server shows as active in your Hetzner Robot panel

Step 3: Order and Access

Complete the order and log in with your root credentials once the server is ready.

✅ 结果: You own a dedicated server at a fixed monthly rate with no hidden fees

💡 专业提示: Run apt update and install nginx right after first login to set up a web server quickly.

How to Use Hetzner Data Protection

Data Protection lets you enable automated backups and snapshots to protect your data against loss.

以下是使用步骤。

Step 1: Enable Backups on Your Server

Open the server details in Hetzner Cloud Console and toggle the Backups option.

Step 2: Create a Manual Snapshot

Click Snapshots, then Create Snapshot to save the current server state on demand.

这就是它的样子:

赫兹纳数据保护

检查点: Your snapshot appears in the Snapshots list with date and size

步骤 3:设置备份计划

Configure the backup window so automated backups run during low-traffic periods.

✅ 结果: Your server is protected with both automated and manual backup options

💡 专业提示: Backups are optional but strongly recommended. Hetzner keeps seven daily backups by default, so you can cancel older snapshots to free up space.

How to Use Hetzner Documentation & API

Documentation & API lets you manage your Hetzner cloud account programmatically using the REST API and community docs.

以下是使用步骤。

Step 1: Generate an API Token

Go to your project in the Hetzner Cloud Console and click API Tokens, then Generate.

Step 2: Send Your First API Call

Use a command like curl with your token to list all servers and verify access from your device.

这就是它的样子:

赫兹纳文档和 API

检查点: The API returns a JSON list of your active servers

Step 3: Explore the Docs

Visit docs.hetzner.cloud for tutorials, code examples, and github integration guides.

✅ 结果: You can now automate server creation and managing resources through the API

💡 专业提示: Save your API token in a secure configuration file so you never paste it in plain 文本.

How to Use Hetzner Floating IPs

Floating IPs lets you assign a static IP address that you can move between servers for zero-downtime migrations.

以下是使用步骤。

Step 1: Create a Floating IP

In the Hetzner Cloud Console, click Floating IPs, then Create Floating IP.

Step 2: Assign to a Server

Select the target server and choose a location in Europe or the USA for your IP.

这就是它的样子:

赫兹纳浮动IPS

检查点: The floating IP shows as assigned with the correct server name

Step 3: Configure Network Settings

Add the floating IP to your server’s network configuration file so the OS recognizes it.

✅ 结果: You have a portable IP address that stays the same even if you switch servers

💡 专业提示: Use floating IPs for production services running https so your DNS records never need to change.

How to Use Hetzner Inclusive Traffic

Inclusive Traffic lets you take advantage of 20 TB of free outbound traffic included with every Hetzner cloud server.

以下是使用步骤。

Step 1: Check Your Traffic Usage

Open server details in the Cloud Console and scroll to the Traffic section.

Review the graph to see daily and monthly traffic patterns for your server.

这就是它的样子:

赫兹纳包容性交通

检查点: The traffic graph displays current usage against the 20 TB monthly allowance

Step 3: Set Traffic Alerts

Add an alert so you receive a notification before reaching the 20 TB limit in any billing period.

✅ 结果: You have full visibility into bandwidth usage and can plan capacity accordingly

💡 专业提示: Most small-to-medium sites never reach the 20 TB cap, making Hetzner plans extremely cost-effective.

Hetzner Pro Tips and Shortcuts

After testing Hetzner for over two years, here are my best tips.

键盘快捷键

行动捷径
Connect to server via SSHssh root@your-ip
Update all packagesapt update && apt upgrade
Create a new user with adduseradduser username
Restart the ssh servicesystemctl restart sshd

大多数人错过的隐藏功能

  • Firewall Rules: Add a firewall in the Cloud Console to block all ports except SSH, HTTP, and HTTPS for instant 安全.
  • Labels for Organization: Assign labels to servers and volumes so you can filter resources by project or environment.
  • 双因素身份验证: Enable 2FA on your account to secure it against unauthorized access from any device.

Hetzner Common Mistakes to Avoid

Mistake #1: Leaving Root Login Enabled

❌ 错误: Keeping root login active after initial server creation.

✅ 右图: Create a new user, grant sudo access, and disable root login by editing sshd_config file.

Mistake #2: Skipping Server Updates

❌ 错误: Never running updates after the initial setup process.

✅ 右图: Run apt update and upgrade regularly to keep all packages secure and up to date.

Mistake #3: Not Setting Up a Firewall

❌ 错误: Leaving all ports open on your cloud server.

✅ 右图: Configure a firewall to allow only the ports you need, and use Fail2Ban to improve protection.

Hetzner Troubleshooting

Problem: Cannot Connect via SSH

原因: Your public key does not match the key on the server, or the ssh service is not running.

使固定: Verify the key on your local machine matches the one in the Cloud Console. Restart the ssh service with the command systemctl restart sshd.

Problem: Server Running Slowly

原因: The server plan does not have enough CPU or RAM for your workload.

使固定: Upgrade to a larger plan from the Cloud Console. You can resize without losing data.

Problem: Locked Out After Firewall Change

原因: A firewall rule is blocking port 22, which prevents SSH access.

使固定: Use the web console in the Hetzner Cloud panel to log in and update the firewall configuration.

📌 笔记: If none of these fix your issue, contact Hetzner support or check the community forums for help.

Hetzner是什么?

赫茨纳 is a hosting platform that provides cloud servers, dedicated servers, and managed services at some of the lowest prices in the industry.

Think of it like having your own data center without the overhead — you get full root access and control.

Hetzner’s data centers are ISO/IEC 27001 certified and located in Germany, Finland, Singapore, and the USA.

The platform guarantees 99.9% uptime for its cloud services.

观看这段快速概览:

它包含以下主要特点:

  • Server Auction: Bid on dedicated servers at reduced prices through a live auction process
  • Load Balancers: Distribute incoming traffic across multiple cloud servers to improve uptime and performance
  • Dedicated GPU Servers: Run machine learning and ai workloads on servers with dedicated nvidia gpus
  • RX Servers: Access cost-effective pre-configured dedicated servers for steady workloads
  • 数据保护: Enable automated backups and snapshots to protect your data against loss
  • Documentation & API: Manage your hetzner cloud account programmatically using the rest api and community docs
  • Floating IPs: Assign a static ip address that you can move between servers for zero-downtime migrations
  • Inclusive Traffic: Take advantage of 20 tb of free outbound traffic included with every hetzner cloud server

如需完整评测,请参阅我们的 Hetzner review.

赫茨纳主页

Cloud servers provide high flexibility and cost-efficiency for projects of any size.

Hetzner Pricing

Here’s what Hetzner costs in 2026:

计划价格最适合
CX23 (Intel/AMD)€2.99/moPersonal sites and testing
CAX11 (Ampere)€3.29/moARM-based development
CX33 (Intel/AMD)€4.99/mo小型企业 托管
CAX21 (Ampere)€5.99/moGrowing web apps
CX43 (Intel/AMD)€8.99/moMedium-traffic sites
CAX31 (Ampere)€11.99/moMulti-app workloads
CX53 (Intel/AMD)€16.99/moLarge databases
CAX41 (Ampere)€23.99/moHigh-performance apps

免费试用: Hetzner offers €20 in free credits for new users — no credit card lock-in.

Hourly billing: All plans support pay-as-you-go billing, so you can cancel at any time during the billing period.

赫兹纳定价

💰 性价比最高: CX33 at €4.99/mo — 4 CPUs and 8 GB RAM covers most small-to-medium projects.

Hetzner vs Alternatives

How does Hetzner compare? Here’s the competitive landscape:

工具最适合价格等级
赫茨纳Budget cloud and dedicated servers€2.99/mo⭐ 4.6
GoDaddyDomain bundled hosting每月 5.99 美元⭐ 4.3
SiteGround托管 WordPress 主机每月 2.99 美元⭐ 4.6
梦之屋Unlimited bandwidth plans每月 2.59 美元⭐ 4.4
NamecheapAffordable shared hosting$1.98/mo⭐ 4.3
HostGatorBeginner-friendly plans每月 3.75 美元⭐ 4.2
HostPapa小的 商业 托管每月 2.95 美元⭐ 4.3
金斯塔Premium managed WordPress每月 35 美元⭐ 4.7

快速精选:

  • 综合最佳: Hetzner — unmatched price-to-performance ratio for cloud and dedicated servers
  • 最佳预算: Namecheap — the cheapest shared hosting option available
  • 最适合初学者: SiteGround — managed WordPress with strong support
  • 最适合企业使用: 液态网络 — fully managed dedicated hosting at scale

🎯 Hetzner Alternatives

Looking for Hetzner alternatives? Here are the top options:

  • 🚀 GoDaddy: Bundles domains with hosting and offers a simple site 建筑商 for users who want everything in one platform.
  • 💰 SiteGround: Provides excellent managed WordPress hosting with strong support and free SSL on all plans.
  • 🎨 DreamHost: Gives you unlimited bandwidth and a 97-day money-back guarantee for risk-free testing.
  • Namecheap: Delivers rock-bottom shared hosting prices with free domain privacy on every plan.
  • 🔒 HostGator: Makes getting online easy with one-click installs and 24/7 live chat support for beginners.
  • 🧠 HostPapa: Focuses on small businesses with free website migration, training sessions, and green hosting.
  • 👶 金斯塔: Uses Google Cloud infrastructure for blazing-fast managed WordPress with a premium dashboard.
  • 🏢 液态网络: Specializes in fully managed dedicated and VPS hosting for agencies and enterprises.
  • 🔧 过剩: Offers auto-scaling managed hosting built for WooCommerce and Magento stores.
  • 🌟 WPX: Delivers ultra-fast WordPress hosting with free site migrations and a custom CDN.

完整列表请参见我们的 Hetzner alternatives 指导。

⚔️ Hetzner Compared

Here’s how Hetzner stacks up against each competitor:

  • Hetzner vs GoDaddy: Hetzner wins on price and flexibility. GoDaddy is easier for total beginners but costs more for less power.
  • Hetzner vs SiteGround: SiteGround has better managed WordPress support. Hetzner gives you more control and lower VPS pricing.
  • Hetzner vs DreamHost: DreamHost offers unlimited bandwidth on shared plans. Hetzner beats it on cloud server performance and global reach.
  • Hetzner vs Namecheap: Namecheap is cheaper for shared hosting. Hetzner is the better option once you need your own server or VPS.
  • Hetzner vs HostGator: HostGator suits complete beginners. Hetzner is better for users who want root access and full linux control.
  • Hetzner vs HostPapa: HostPapa adds hand-holding and training. Hetzner focuses on raw power and cost savings for technical users.
  • Hetzner vs Kinsta: Kinsta offers fully managed WordPress. Hetzner costs a fraction of the price if you handle configuration yourself.
  • Hetzner vs Liquid Web: Liquid Web provides managed dedicated servers. Hetzner’s server auction gives similar hardware at lower cost.
  • Hetzner vs Nexcess: Nexcess specializes in ecommerce hosting. Hetzner is more versatile for general cloud and dedicated workloads.
  • Hetzner vs WPX: WPX excels at WordPress speed. Hetzner wins if you need a customizable cloud server beyond just WordPress.

Start Using Hetzner Now

You learned how to use every major Hetzner feature:

  • ✅ Server Auction
  • ✅ Load Balancers
  • ✅ Dedicated GPU Servers
  • ✅ RX Servers
  • ✅ Data Protection
  • ✅ Documentation & API
  • ✅ Floating IPs
  • ✅ Inclusive Traffic

下一步: 选择一项功能,立即试用。

Most people start with Server Auction.

It takes less than 5 minutes to complete.

常见问题解答

Is Hetzner suitable for beginners?

Yes. Hetzner offers a clean Cloud Console, one-click apps, and detailed tutorials that help any new user deploy a cloud server in minutes.

What do people use Hetzner for?

People use Hetzner for VPS hosting, wordpress sites, game servers, AI workloads, and running their own server with full root access.

Can you use Hetzner in the USA?

Yes. Hetzner has a data center in Ashburn, Virginia, so users in the USA get low-latency access to cloud server resources.

Is Hetzner trustworthy?

Hetzner is ISO 27001 certified and guarantees 99.9% uptime. Their data centers in Germany and Finland follow strict European data protection laws.

How is Hetzner so cheap?

Hetzner owns its data centers and builds custom hardware. This vertical integration removes middlemen and keeps cloud server plans far below AWS or Azure pricing.

相关文章