<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: PhantomVPS</title>
    <description>The latest articles on DEV Community by PhantomVPS (@phantomvps).</description>
    <link>https://dev.to/phantomvps</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4264980%2F1d268762-b2a7-4309-a1c9-77b3a9f31db1.png</url>
      <title>DEV Community: PhantomVPS</title>
      <link>https://dev.to/phantomvps</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/phantomvps"/>
    <language>en</language>
    <item>
      <title>Self-host a WireGuard VPN on a VPS in 10 minutes (Ubuntu 24.04 / Debian 12)</title>
      <dc:creator>PhantomVPS</dc:creator>
      <pubDate>Fri, 27 Nov 2026 06:20:05 +0000</pubDate>
      <link>https://dev.to/phantomvps/self-host-a-wireguard-vpn-on-a-vps-in-10-minutes-ubuntu-2404-debian-12-3p2h</link>
      <guid>https://dev.to/phantomvps/self-host-a-wireguard-vpn-on-a-vps-in-10-minutes-ubuntu-2404-debian-12-3p2h</guid>
      <description>&lt;p&gt;WireGuard is small, fast and built into the Linux kernel. A server for yourself, your family or a small team needs one config file, one firewall rule set and a few minutes. This guide sets up a full-tunnel VPN (all client traffic goes through the server) on a fresh &lt;strong&gt;Ubuntu 24.04&lt;/strong&gt; or &lt;strong&gt;Debian 12&lt;/strong&gt; VPS.&lt;/p&gt;

&lt;p&gt;What it gives you: an encrypted link from your devices to a server you control, protection on public Wi-Fi, and a fixed exit IP address. What it does not give you: anonymity. You move trust from your local network to your server and whoever hosts it, and websites see your server's address.&lt;/p&gt;

&lt;h2&gt;
  
  
  What you need
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A VPS with a public IPv4 address and root access. One vCPU and 1 GB of RAM handle a household easily; the bandwidth allowance is the number that matters.&lt;/li&gt;
&lt;li&gt;SSH access, with key login and a basic firewall already in place (see the checklist in the previous article of this series if not).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Everything below runs as root (&lt;code&gt;sudo -i&lt;/code&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Install the packages
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apt update
apt install -y wireguard iptables qrencode
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;wireguard&lt;/code&gt; pulls in &lt;code&gt;wireguard-tools&lt;/code&gt; (&lt;code&gt;wg&lt;/code&gt;, &lt;code&gt;wg-quick&lt;/code&gt;); the kernel module ships with both distributions.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;iptables&lt;/code&gt; is used for NAT in the config. Minimal Debian 12 images may not include it.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;qrencode&lt;/code&gt; turns a client config into a QR code for the phone apps.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  2. Generate keys
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; /etc/wireguard
&lt;span class="nb"&gt;umask&lt;/span&gt; 077
wg genkey &lt;span class="o"&gt;|&lt;/span&gt; tee server.key &lt;span class="o"&gt;|&lt;/span&gt; wg pubkey &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; server.pub
wg genkey &lt;span class="o"&gt;|&lt;/span&gt; tee phone.key  &lt;span class="o"&gt;|&lt;/span&gt; wg pubkey &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; phone.pub
wg genkey &lt;span class="o"&gt;|&lt;/span&gt; tee laptop.key &lt;span class="o"&gt;|&lt;/span&gt; wg pubkey &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; laptop.pub
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;umask 077&lt;/code&gt; makes sure the private keys are readable only by root. Each side keeps its private key and gives its public key to the other side.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Find your public interface
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ip route get 1.1.1.1 &lt;span class="o"&gt;|&lt;/span&gt; awk &lt;span class="s1"&gt;'{for(i=1;i&amp;lt;=NF;i++) if($i=="dev") print $(i+1)}'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Usually &lt;code&gt;eth0&lt;/code&gt;, &lt;code&gt;ens3&lt;/code&gt; or &lt;code&gt;enp1s0&lt;/code&gt;. The examples use &lt;code&gt;eth0&lt;/code&gt;; replace it everywhere if yours differs.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Server config
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cat &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /etc/wireguard/wg0.conf &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;EOF
&lt;span class="o"&gt;[&lt;/span&gt;Interface&lt;span class="o"&gt;]&lt;/span&gt;
Address    &lt;span class="o"&gt;=&lt;/span&gt; 10.8.0.1/24
ListenPort &lt;span class="o"&gt;=&lt;/span&gt; 51820
PrivateKey &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$(&lt;/span&gt;cat /etc/wireguard/server.key&lt;span class="o"&gt;)&lt;/span&gt;
PostUp     &lt;span class="o"&gt;=&lt;/span&gt; iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
PostDown   &lt;span class="o"&gt;=&lt;/span&gt; iptables -t nat -D POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE

&lt;span class="o"&gt;[&lt;/span&gt;Peer&lt;span class="o"&gt;]&lt;/span&gt;
&lt;span class="c"&gt;# phone&lt;/span&gt;
PublicKey  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$(&lt;/span&gt;cat /etc/wireguard/phone.pub&lt;span class="o"&gt;)&lt;/span&gt;
AllowedIPs &lt;span class="o"&gt;=&lt;/span&gt; 10.8.0.2/32

&lt;span class="o"&gt;[&lt;/span&gt;Peer&lt;span class="o"&gt;]&lt;/span&gt;
&lt;span class="c"&gt;# laptop&lt;/span&gt;
PublicKey  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$(&lt;/span&gt;cat /etc/wireguard/laptop.pub&lt;span class="o"&gt;)&lt;/span&gt;
AllowedIPs &lt;span class="o"&gt;=&lt;/span&gt; 10.8.0.3/32
EOF
chmod 600 /etc/wireguard/wg0.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the server, &lt;code&gt;AllowedIPs&lt;/code&gt; for each peer is the single VPN address that peer may use. It works like a routing table and an access list at the same time.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Enable IP forwarding
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"net.ipv4.ip_forward = 1"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /etc/sysctl.d/99-wireguard.conf
sysctl --system &lt;span class="o"&gt;|&lt;/span&gt; grep ip_forward
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  6. Firewall: open the port and allow routing
&lt;/h2&gt;

&lt;p&gt;If you use &lt;strong&gt;ufw&lt;/strong&gt;, its default policy drops forwarded traffic. Instead of switching the whole forward policy to accept, allow exactly the path you need:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ufw allow 51820/udp
ufw route allow &lt;span class="k"&gt;in&lt;/span&gt; on wg0 out on eth0
ufw status verbose
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Make sure SSH is still allowed (&lt;code&gt;ufw status&lt;/code&gt; should list your SSH port) before you do anything else with the firewall.&lt;/p&gt;

&lt;p&gt;If you do not use ufw and your FORWARD policy is already ACCEPT, the NAT rule from &lt;code&gt;PostUp&lt;/code&gt; is all you need.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Start the tunnel
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; --now wg-quick@wg0
wg show
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;wg show&lt;/code&gt; lists the interface and both peers. Peers show no handshake yet; that comes when a client connects.&lt;/p&gt;

&lt;h2&gt;
  
  
  8. Client configs
&lt;/h2&gt;

&lt;p&gt;Create one file per device. The client's &lt;code&gt;AllowedIPs = 0.0.0.0/0, ::/0&lt;/code&gt; sends all traffic through the tunnel. Including &lt;code&gt;::/0&lt;/code&gt; also captures IPv6, so if your server has no IPv6 routing set up, IPv6 traffic simply does not leave the device instead of bypassing the VPN.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;SERVER_IP&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="nv"&gt;$(&lt;/span&gt;curl -4 -s https://ifconfig.me&lt;span class="o"&gt;)&lt;/span&gt;

cat &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /root/phone.conf &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;EOF
&lt;span class="o"&gt;[&lt;/span&gt;Interface&lt;span class="o"&gt;]&lt;/span&gt;
PrivateKey &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$(&lt;/span&gt;cat /etc/wireguard/phone.key&lt;span class="o"&gt;)&lt;/span&gt;
Address    &lt;span class="o"&gt;=&lt;/span&gt; 10.8.0.2/32
DNS        &lt;span class="o"&gt;=&lt;/span&gt; 1.1.1.1, 9.9.9.9

&lt;span class="o"&gt;[&lt;/span&gt;Peer&lt;span class="o"&gt;]&lt;/span&gt;
PublicKey  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$(&lt;/span&gt;cat /etc/wireguard/server.pub&lt;span class="o"&gt;)&lt;/span&gt;
Endpoint   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;${SERVER_IP}&lt;/span&gt;:51820
AllowedIPs &lt;span class="o"&gt;=&lt;/span&gt; 0.0.0.0/0, ::/0
PersistentKeepalive &lt;span class="o"&gt;=&lt;/span&gt; 25
EOF

qrencode -t ansiutf8 &lt;span class="o"&gt;&amp;lt;&lt;/span&gt; /root/phone.conf
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Scan the QR code with the official WireGuard app (Android or iOS). For the laptop, build &lt;code&gt;laptop.conf&lt;/code&gt; the same way with &lt;code&gt;10.8.0.3/32&lt;/code&gt; and the laptop key, copy it over with &lt;code&gt;scp&lt;/code&gt;, and import it into the desktop app or run &lt;code&gt;wg-quick up ./laptop.conf&lt;/code&gt; on Linux.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;PersistentKeepalive = 25&lt;/code&gt; sends a tiny packet every 25 seconds so that home routers and mobile networks do not drop the idle UDP mapping.&lt;/p&gt;

&lt;p&gt;Pick DNS resolvers you trust, or run your own resolver on the server and point clients to &lt;code&gt;10.8.0.1&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  9. Test
&lt;/h2&gt;

&lt;p&gt;On the client, connect, then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -4 https://ifconfig.me   &lt;span class="c"&gt;# should print the server IP&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On the server:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;wg show
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A recent &lt;code&gt;latest handshake&lt;/code&gt; and growing &lt;code&gt;transfer&lt;/code&gt; counters mean it works.&lt;/p&gt;

&lt;h2&gt;
  
  
  Add a peer without dropping anyone
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;cd&lt;/span&gt; /etc/wireguard &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;umask&lt;/span&gt; 077
wg genkey &lt;span class="o"&gt;|&lt;/span&gt; tee tablet.key &lt;span class="o"&gt;|&lt;/span&gt; wg pubkey &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; tablet.pub

cat &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; wg0.conf &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;EOF

&lt;span class="o"&gt;[&lt;/span&gt;Peer&lt;span class="o"&gt;]&lt;/span&gt;
&lt;span class="c"&gt;# tablet&lt;/span&gt;
PublicKey  &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nv"&gt;$(&lt;/span&gt;cat tablet.pub&lt;span class="o"&gt;)&lt;/span&gt;
AllowedIPs &lt;span class="o"&gt;=&lt;/span&gt; 10.8.0.4/32
EOF

wg syncconf wg0 &lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="o"&gt;(&lt;/span&gt;wg-quick strip wg0&lt;span class="o"&gt;)&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;wg syncconf&lt;/code&gt; applies the new peer list to the running interface; existing sessions stay up. &lt;code&gt;systemctl restart wg-quick@wg0&lt;/code&gt; also works but briefly disconnects everyone.&lt;/p&gt;

&lt;p&gt;To remove a device, delete its &lt;code&gt;[Peer]&lt;/code&gt; block and run the same &lt;code&gt;syncconf&lt;/code&gt; line. Then delete its key files.&lt;/p&gt;

&lt;h2&gt;
  
  
  Troubleshooting
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Symptom&lt;/th&gt;
&lt;th&gt;Likely cause&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;No handshake at all&lt;/td&gt;
&lt;td&gt;UDP 51820 blocked (ufw, the network you are on), wrong &lt;code&gt;Endpoint&lt;/code&gt;, or swapped public keys&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Handshake but no internet&lt;/td&gt;
&lt;td&gt;
&lt;code&gt;ip_forward&lt;/code&gt; off, missing &lt;code&gt;ufw route allow&lt;/code&gt;, or wrong interface name in &lt;code&gt;PostUp&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Works on Wi-Fi, not on mobile&lt;/td&gt;
&lt;td&gt;Missing &lt;code&gt;PersistentKeepalive&lt;/code&gt;, or the mobile network filters UDP&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;Some sites hang&lt;/td&gt;
&lt;td&gt;MTU; try &lt;code&gt;MTU = 1380&lt;/code&gt; in the client &lt;code&gt;[Interface]&lt;/code&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Useful commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;journalctl -u wg-quick@wg0 -n 50
iptables -t nat -S POSTROUTING
sysctl net.ipv4.ip_forward
tcpdump -ni eth0 udp port 51820   &lt;span class="c"&gt;# do packets arrive at all?&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  Hardening notes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Keep &lt;code&gt;/etc/wireguard&lt;/code&gt; root-only; anyone with a client private key can use your server.&lt;/li&gt;
&lt;li&gt;One key pair per device, never shared, so you can revoke one without touching the others.&lt;/li&gt;
&lt;li&gt;Keep the system updated (unattended-upgrades) and SSH key-only.&lt;/li&gt;
&lt;li&gt;If plain WireGuard is filtered on a network you need, look at obfuscated variants such as AmneziaWG or at Xray with REALITY.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where to run it
&lt;/h2&gt;

&lt;p&gt;I work with PhantomVPS; our &lt;a href="https://phantomvps.com/vpn-vps" rel="noopener noreferrer"&gt;VPN server hosting page&lt;/a&gt; covers plan sizing and links step-by-step guides for WireGuard, AmneziaWG and Xray. Fast VPS plans start at $7.99 a month with root access, sign-up needs an email address and a password (no ID documents, no phone number), and you can pay with Monero, Bitcoin, Litecoin, USDT, USDC, SOL or TRX. You can ping the test IPs linked there before you order to compare latency from where you are. The setup above works on any Ubuntu or Debian VPS.&lt;/p&gt;

</description>
      <category>wireguard</category>
      <category>vpn</category>
      <category>linux</category>
      <category>selfhosted</category>
    </item>
    <item>
      <title>SSH hardening checklist for a fresh Ubuntu 24.04 or Debian 12 VPS</title>
      <dc:creator>PhantomVPS</dc:creator>
      <pubDate>Thu, 26 Nov 2026 16:20:05 +0000</pubDate>
      <link>https://dev.to/phantomvps/ssh-hardening-checklist-for-a-fresh-ubuntu-2404-or-debian-12-vps-4k8k</link>
      <guid>https://dev.to/phantomvps/ssh-hardening-checklist-for-a-fresh-ubuntu-2404-or-debian-12-vps-4k8k</guid>
      <description>&lt;p&gt;A new VPS with a public IP gets its first SSH password guesses within minutes. Nothing about that is personal: bots scan the whole IPv4 space all day. The good news is that an hour of work, done in the right order, removes almost all of that risk.&lt;/p&gt;

&lt;p&gt;This checklist is written for &lt;strong&gt;Ubuntu 24.04&lt;/strong&gt; and &lt;strong&gt;Debian 12&lt;/strong&gt;. Both have a couple of details that older guides get wrong (socket-activated SSH on Ubuntu, no &lt;code&gt;auth.log&lt;/code&gt; on Debian), so those are called out where they matter.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Golden rule:&lt;/strong&gt; keep your current SSH session open the whole time, and test every change from a &lt;em&gt;second&lt;/em&gt; terminal before you close the first one.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Update first
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apt update &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; apt full-upgrade -y
&lt;span class="c"&gt;# reboot if a new kernel was installed&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt; -f /var/run/reboot-required &lt;span class="o"&gt;]&lt;/span&gt; &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; reboot
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Create a normal user with sudo
&lt;/h2&gt;

&lt;p&gt;Working as root all day turns every typo into an outage.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;adduser deploy
usermod -aG sudo deploy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Use SSH keys
&lt;/h2&gt;

&lt;p&gt;On &lt;strong&gt;your own machine&lt;/strong&gt; (not the server):&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh-keygen -t ed25519 -a 100 -C &lt;span class="s2"&gt;"laptop-2026"&lt;/span&gt;
ssh-copy-id -i ~/.ssh/id_ed25519.pub deploy@YOUR_SERVER_IP
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then test it from a second terminal:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh -i ~/.ssh/id_ed25519 deploy@YOUR_SERVER_IP
sudo -v   &lt;span class="c"&gt;# confirm sudo works for this user&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Do not continue until this login works without a password prompt (a passphrase prompt for the key itself is fine and recommended).&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Harden sshd with a drop-in that actually wins
&lt;/h2&gt;

&lt;p&gt;Both distributions read &lt;code&gt;/etc/ssh/sshd_config.d/*.conf&lt;/code&gt; at the top of the main config. For most sshd options &lt;strong&gt;the first value read wins&lt;/strong&gt;, not the last. Many cloud images ship &lt;code&gt;/etc/ssh/sshd_config.d/50-cloud-init.conf&lt;/code&gt; containing &lt;code&gt;PasswordAuthentication yes&lt;/code&gt;, which silently overrides anything you write further down in &lt;code&gt;sshd_config&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;So give your file a name that sorts first:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cat &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /etc/ssh/sshd_config.d/00-hardening.conf &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="s1"&gt;'EOF'&lt;/span&gt;
PermitRootLogin no
PasswordAuthentication no
KbdInteractiveAuthentication no
PubkeyAuthentication yes
AuthenticationMethods publickey
MaxAuthTries 3
LoginGraceTime 30
X11Forwarding no
AllowUsers deploy
EOF
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Check the syntax, then check what sshd will &lt;em&gt;really&lt;/em&gt; use:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;sshd -t &lt;span class="o"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"config OK"&lt;/span&gt;
sshd -T &lt;span class="o"&gt;|&lt;/span&gt; grep -Ei &lt;span class="s1"&gt;'^(permitrootlogin|passwordauthentication|kbdinteractiveauthentication|allowusers)'&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If &lt;code&gt;sshd -T&lt;/code&gt; still shows &lt;code&gt;passwordauthentication yes&lt;/code&gt;, another file is being read before yours. Find it with &lt;code&gt;grep -ri passwordauthentication /etc/ssh/&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;Apply the change:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;systemctl reload ssh
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now open a &lt;strong&gt;new&lt;/strong&gt; terminal and log in as &lt;code&gt;deploy&lt;/code&gt; again. Also confirm that root and passwords are refused:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh root@YOUR_SERVER_IP                       &lt;span class="c"&gt;# should fail&lt;/span&gt;
ssh -o &lt;span class="nv"&gt;PubkeyAuthentication&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;no deploy@YOUR_SERVER_IP   &lt;span class="c"&gt;# should fail&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h3&gt;
  
  
  Changing the SSH port (optional)
&lt;/h3&gt;

&lt;p&gt;A non-standard port does not add real security, but it cuts log noise a lot. On &lt;strong&gt;Ubuntu 24.04&lt;/strong&gt;, SSH is started by &lt;code&gt;ssh.socket&lt;/code&gt;, so the port in &lt;code&gt;sshd_config&lt;/code&gt; alone is not enough after a change; the socket must be regenerated:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;echo&lt;/span&gt; &lt;span class="s2"&gt;"Port 2222"&lt;/span&gt; &lt;span class="o"&gt;&amp;gt;&amp;gt;&lt;/span&gt; /etc/ssh/sshd_config.d/00-hardening.conf
sshd -t
systemctl daemon-reload
systemctl restart ssh.socket
ss -tlnp &lt;span class="o"&gt;|&lt;/span&gt; grep 2222
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;On &lt;strong&gt;Debian 12&lt;/strong&gt; a plain &lt;code&gt;systemctl restart ssh&lt;/code&gt; is enough. Whichever you use, open the new port in the firewall (next step) &lt;strong&gt;before&lt;/strong&gt; you restart, and remember to replace &lt;code&gt;22&lt;/code&gt; with your port in the commands below.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Firewall with ufw
&lt;/h2&gt;

&lt;p&gt;Allow SSH first, then turn the firewall on. &lt;code&gt;limit&lt;/code&gt; rate-limits new connections (6 in 30 seconds per source IP), which slows brute force down further.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apt install -y ufw
ufw default deny incoming
ufw default allow outgoing
ufw limit 22/tcp
&lt;span class="c"&gt;# add what your server actually serves, for example:&lt;/span&gt;
&lt;span class="c"&gt;# ufw allow 80/tcp&lt;/span&gt;
&lt;span class="c"&gt;# ufw allow 443/tcp&lt;/span&gt;
ufw &lt;span class="nb"&gt;enable&lt;/span&gt;
ufw status verbose
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A side effect of &lt;code&gt;limit&lt;/code&gt; worth knowing: if &lt;em&gt;you&lt;/em&gt; open many SSH connections quickly (scripts, Ansible, retry loops), you will lock yourself out for a short while. Batch your commands or use SSH connection multiplexing (&lt;code&gt;ControlMaster auto&lt;/code&gt; in &lt;code&gt;~/.ssh/config&lt;/code&gt;).&lt;/p&gt;

&lt;h2&gt;
  
  
  6. fail2ban, with the backend that works on both systems
&lt;/h2&gt;

&lt;p&gt;Debian 12 does not install rsyslog by default, so there is no &lt;code&gt;/var/log/auth.log&lt;/code&gt; and fail2ban's default &lt;code&gt;sshd&lt;/code&gt; jail can fail to start. Reading the systemd journal works on both distributions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apt install -y fail2ban python3-systemd

cat &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /etc/fail2ban/jail.local &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="s1"&gt;'EOF'&lt;/span&gt;
&lt;span class="o"&gt;[&lt;/span&gt;DEFAULT&lt;span class="o"&gt;]&lt;/span&gt;
bantime  &lt;span class="o"&gt;=&lt;/span&gt; 1h
findtime &lt;span class="o"&gt;=&lt;/span&gt; 10m
maxretry &lt;span class="o"&gt;=&lt;/span&gt; 5
&lt;span class="c"&gt;# bantime.increment = true   # optional: longer bans for repeat offenders&lt;/span&gt;

&lt;span class="o"&gt;[&lt;/span&gt;sshd&lt;span class="o"&gt;]&lt;/span&gt;
enabled &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="kc"&gt;true&lt;/span&gt;
backend &lt;span class="o"&gt;=&lt;/span&gt; systemd
port    &lt;span class="o"&gt;=&lt;/span&gt; ssh
EOF

systemctl &lt;span class="nb"&gt;enable&lt;/span&gt; --now fail2ban
systemctl restart fail2ban
fail2ban-client status sshd
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you moved SSH to another port, set &lt;code&gt;port = 2222&lt;/code&gt; in the jail. To unban yourself: &lt;code&gt;fail2ban-client set sshd unbanip YOUR_IP&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  7. Automatic security updates
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;apt install -y unattended-upgrades apt-listchanges
dpkg-reconfigure -plow unattended-upgrades   &lt;span class="c"&gt;# answer "Yes"&lt;/span&gt;
cat /etc/apt/apt.conf.d/20auto-upgrades
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The last command should show:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight conf"&gt;&lt;code&gt;&lt;span class="no"&gt;APT&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;Periodic&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;Update&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Package&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Lists&lt;/span&gt; &lt;span class="s2"&gt;"1"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="no"&gt;APT&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;Periodic&lt;/span&gt;&lt;span class="o"&gt;::&lt;/span&gt;&lt;span class="nc"&gt;Unattended&lt;/span&gt;&lt;span class="o"&gt;-&lt;/span&gt;&lt;span class="nc"&gt;Upgrade&lt;/span&gt; &lt;span class="s2"&gt;"1"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Kernel and libc updates need a reboot to take effect. If an unplanned reboot at night is acceptable for this server, put your choice in a local file so package upgrades never overwrite it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;cat &lt;span class="o"&gt;&amp;gt;&lt;/span&gt; /etc/apt/apt.conf.d/52unattended-upgrades-local &lt;span class="o"&gt;&amp;lt;&amp;lt;&lt;/span&gt;&lt;span class="s1"&gt;'EOF'&lt;/span&gt;
Unattended-Upgrade::Automatic-Reboot &lt;span class="s2"&gt;"true"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
Unattended-Upgrade::Automatic-Reboot-Time &lt;span class="s2"&gt;"04:00"&lt;/span&gt;&lt;span class="o"&gt;;&lt;/span&gt;
EOF

unattended-upgrade --dry-run --debug 2&lt;span class="o"&gt;&amp;gt;&amp;amp;&lt;/span&gt;1 &lt;span class="o"&gt;|&lt;/span&gt; tail -n 20
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  8. Final checks
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ss -tulpn                      &lt;span class="c"&gt;# only the ports you expect should listen&lt;/span&gt;
ufw status numbered
fail2ban-client status sshd
journalctl -u ssh --since &lt;span class="s2"&gt;"1 hour ago"&lt;/span&gt; &lt;span class="o"&gt;|&lt;/span&gt; tail
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Write down how you get in if SSH breaks: most hosts offer a browser or VNC console. Find it &lt;strong&gt;now&lt;/strong&gt;, while everything works.&lt;/p&gt;

&lt;h2&gt;
  
  
  The 30-second version
&lt;/h2&gt;

&lt;p&gt;If you set up servers often, the same steps are wrapped in a short, readable open-source script: &lt;a href="https://github.com/phantomvps/vps-first-steps" rel="noopener noreferrer"&gt;vps-first-steps&lt;/a&gt;. It installs updates and unattended-upgrades, creates a sudo user and copies your keys, sets up ufw with rate-limited SSH and fail2ban, and turns off password login &lt;strong&gt;only if an SSH key is already installed&lt;/strong&gt;. It tests the sshd config before reloading and reverts its own change if the test fails.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSLO https://raw.githubusercontent.com/phantomvps/vps-first-steps/main/vps-first-steps.sh
less vps-first-steps.sh      &lt;span class="c"&gt;# read it first, it is short&lt;/span&gt;
sudo bash vps-first-steps.sh --user deploy --allow 80,443
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Disclosure: the script is maintained by the team behind &lt;a href="https://phantomvps.com/no-kyc-vps" rel="noopener noreferrer"&gt;PhantomVPS&lt;/a&gt;, where I work. We sell VPS and dedicated servers with root access; sign-up needs an email address and a password, no ID documents and no phone number, and you can pay with Monero, Bitcoin, Litecoin, USDT, USDC, SOL or TRX. The checklist above works the same on any Ubuntu or Debian server, wherever it runs.&lt;/p&gt;

&lt;h2&gt;
  
  
  Checklist
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;[ ] System updated, rebooted if needed&lt;/li&gt;
&lt;li&gt;[ ] Non-root sudo user&lt;/li&gt;
&lt;li&gt;[ ] Ed25519 key login tested from a second terminal&lt;/li&gt;
&lt;li&gt;[ ] &lt;code&gt;00-hardening.conf&lt;/code&gt; in &lt;code&gt;sshd_config.d&lt;/code&gt;, verified with &lt;code&gt;sshd -T&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;[ ] ufw on, SSH rate-limited, only needed ports open&lt;/li&gt;
&lt;li&gt;[ ] fail2ban &lt;code&gt;sshd&lt;/code&gt; jail running with &lt;code&gt;backend = systemd&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;[ ] unattended-upgrades enabled, reboot policy decided&lt;/li&gt;
&lt;li&gt;[ ] Emergency console location known&lt;/li&gt;
&lt;/ul&gt;

</description>
      <category>linux</category>
      <category>security</category>
      <category>devops</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>Windows VPS paid with crypto: first RDP login and the first hour of security</title>
      <dc:creator>PhantomVPS</dc:creator>
      <pubDate>Wed, 25 Nov 2026 14:44:46 +0000</pubDate>
      <link>https://dev.to/phantomvps/windows-vps-paid-with-crypto-first-rdp-login-and-the-first-hour-of-security-144o</link>
      <guid>https://dev.to/phantomvps/windows-vps-paid-with-crypto-first-rdp-login-and-the-first-hour-of-security-144o</guid>
      <description>&lt;p&gt;If you need a Windows server (a trading terminal, a Windows-only app, a remote desktop to work from), you do not need a&lt;br&gt;
card or an ID document: many providers now take crypto. This guide covers choosing the plan, paying, the first Remote&lt;br&gt;
Desktop (RDP) login and the first security steps.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Choose a plan that really supports Windows
&lt;/h2&gt;

&lt;p&gt;Windows needs more memory than Linux. Small 1 GB plans usually cannot run it at all, so check the order form before&lt;br&gt;
paying: the operating system list must show Windows for that exact plan.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;2 GB RAM&lt;/strong&gt; is the minimum for Windows Server with a light workload.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;4 GB RAM or more&lt;/strong&gt; for a desktop you actually work in (browser, office apps, trading terminals).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Also check the licence: some providers charge a monthly Windows licence fee, others include Windows at no extra cost,&lt;br&gt;
and some install the Windows Server &lt;strong&gt;evaluation&lt;/strong&gt; edition, which you can later activate with your own key.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Pay with crypto
&lt;/h2&gt;

&lt;p&gt;The usual flow: pick the plan and Windows at checkout, choose the coin, send the exact amount to the address on the&lt;br&gt;
invoice. Things that save time:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Stablecoins&lt;/strong&gt; (USDT, USDC) avoid price swings while you pay; Solana is the fastest network for them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Monero&lt;/strong&gt; is the private option: the payment does not become a public link between your wallet and your server.&lt;/li&gt;
&lt;li&gt;Send the &lt;strong&gt;exact&lt;/strong&gt; amount in &lt;strong&gt;one&lt;/strong&gt; transaction, on the network the invoice shows.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  3. First Remote Desktop login
&lt;/h2&gt;

&lt;p&gt;You receive the IP address, the user name (&lt;code&gt;Administrator&lt;/code&gt;) and the password.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Windows:&lt;/strong&gt; press Win+R, type &lt;code&gt;mstsc&lt;/code&gt;, enter the IP, then the user and password.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;macOS:&lt;/strong&gt; install &lt;em&gt;Windows App&lt;/em&gt; (formerly Microsoft Remote Desktop) from the App Store.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Linux:&lt;/strong&gt; &lt;code&gt;xfreerdp /v:YOUR_IP /u:Administrator&lt;/code&gt; (FreeRDP) or Remmina.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The first connection shows a certificate warning: that is normal for a new server.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Secure it in the first hour
&lt;/h2&gt;

&lt;p&gt;Port 3389 gets password-guessing attempts within minutes of a server going online.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Change the Administrator password&lt;/strong&gt; to a long random one (Ctrl+Alt+End inside the session -&amp;gt; Change a password).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Run Windows Update&lt;/strong&gt; until nothing is left, and reboot.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Create your own user&lt;/strong&gt; and add it to &lt;em&gt;Remote Desktop Users&lt;/em&gt;; use it instead of Administrator.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Account lockout policy&lt;/strong&gt;: &lt;code&gt;secpol.msc&lt;/code&gt; -&amp;gt; Account Policies -&amp;gt; Account Lockout Policy -&amp;gt; lock after 5 failed logins.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Limit RDP by IP&lt;/strong&gt; if your own IP is fixed: Windows Defender Firewall -&amp;gt; Inbound rule &lt;em&gt;Remote Desktop&lt;/em&gt; -&amp;gt; Scope -&amp;gt;
allow only your IP.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Where to get one
&lt;/h2&gt;

&lt;p&gt;I work with &lt;a href="https://phantomvps.com/windows-vps" rel="noopener noreferrer"&gt;PhantomVPS&lt;/a&gt;: Windows VPS and servers paid with Monero, Bitcoin,&lt;br&gt;
USDT, USDC, SOL or TRX, no ID documents. The &lt;a href="https://phantomvps.com/windows-vps" rel="noopener noreferrer"&gt;Windows VPS page&lt;/a&gt; lists which plans&lt;br&gt;
include which Windows versions.&lt;/p&gt;

</description>
      <category>windows</category>
      <category>rdp</category>
      <category>security</category>
      <category>crypto</category>
    </item>
    <item>
      <title>How to rent a VPS with Monero (XMR), step by step</title>
      <dc:creator>PhantomVPS</dc:creator>
      <pubDate>Wed, 25 Nov 2026 14:41:06 +0000</pubDate>
      <link>https://dev.to/phantomvps/how-to-rent-a-vps-with-monero-xmr-step-by-step-15ak</link>
      <guid>https://dev.to/phantomvps/how-to-rent-a-vps-with-monero-xmr-step-by-step-15ak</guid>
      <description>&lt;p&gt;If you pay a hosting company in Bitcoin, the payment is a permanent public record: anyone who knows your address or&lt;br&gt;
the transaction can follow where the coins came from and where they went. Monero (XMR) hides the sender, the receiver&lt;br&gt;
and the amount by default, so your server bill does not become a public link between your wallet and your server.&lt;/p&gt;

&lt;p&gt;This guide walks through renting a VPS with Monero from start to first SSH login, and what to do in the first hour.&lt;/p&gt;
&lt;h2&gt;
  
  
  1. Get the coins ready
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;A small VPS costs a few dollars a month, so you only need a few dollars' worth of XMR plus a tiny network fee.&lt;/li&gt;
&lt;li&gt;For the most privacy, send from a wallet you control (Feather, Cake Wallet, the official GUI/CLI wallet),
not directly from an exchange.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;
  
  
  2. Pick a provider that takes XMR directly
&lt;/h2&gt;

&lt;p&gt;Check three things:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Direct Monero payment&lt;/strong&gt;, ideally on the provider's own payment page, not through a card processor.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No ID documents&lt;/strong&gt; required to sign up.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The price is fixed in dollars&lt;/strong&gt; and the XMR amount is locked for a while, so the rate does not move mid-payment.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;(I work with &lt;a href="https://phantomvps.com" rel="noopener noreferrer"&gt;PhantomVPS&lt;/a&gt;, which does all three: one-click sign-up with an anonymous access&lt;br&gt;
key, a user ID or an email; XMR amount locked for 3 hours; plans from $7.99 a month.)&lt;/p&gt;
&lt;h2&gt;
  
  
  3. Pay the invoice
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Choose the plan and the operating system, then Monero at checkout.&lt;/li&gt;
&lt;li&gt;Copy the address and the &lt;strong&gt;exact&lt;/strong&gt; amount (or scan the QR code) and send it in &lt;strong&gt;one&lt;/strong&gt; transaction.&lt;/li&gt;
&lt;li&gt;Wait for confirmations. Monero needs about 10 blocks, roughly 20 minutes.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If your wallet says "invalid address", it may not support the address type the page shows; good payment pages offer&lt;br&gt;
a standard address as an alternative.&lt;/p&gt;
&lt;h2&gt;
  
  
  4. First login
&lt;/h2&gt;

&lt;p&gt;You receive the IP address, the user (&lt;code&gt;root&lt;/code&gt; on Linux, &lt;code&gt;Administrator&lt;/code&gt; on Windows) and the password.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;ssh root@YOUR_SERVER_IP
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Change the password right away (&lt;code&gt;passwd&lt;/code&gt;), or better, install an SSH key.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The first hour: lock it down
&lt;/h2&gt;

&lt;p&gt;Fresh servers get SSH brute-force attempts within minutes. Minimum steps:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;install security updates and turn on automatic updates,&lt;/li&gt;
&lt;li&gt;a firewall that allows only SSH and the ports you need,&lt;/li&gt;
&lt;li&gt;fail2ban for SSH,&lt;/li&gt;
&lt;li&gt;SSH keys instead of passwords.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;There is a short open-source script that does exactly this, without locking you out:&lt;br&gt;
&lt;a href="https://github.com/phantomvps/vps-first-steps" rel="noopener noreferrer"&gt;vps-first-steps&lt;/a&gt;.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -fsSLO https://raw.githubusercontent.com/phantomvps/vps-first-steps/main/vps-first-steps.sh
less vps-first-steps.sh
sudo bash vps-first-steps.sh --user deploy --allow 80,443
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  What Monero does and does not protect
&lt;/h2&gt;

&lt;p&gt;Monero protects the &lt;strong&gt;payment&lt;/strong&gt;. Your email address, what you run on the server, and where you bought your coins&lt;br&gt;
(an exchange may keep records) are still up to you.&lt;/p&gt;

</description>
      <category>monero</category>
      <category>privacy</category>
      <category>selfhosted</category>
      <category>security</category>
    </item>
  </channel>
</rss>
