Skip to content

Latest commit

 

History

History
124 lines (78 loc) · 1.79 KB

File metadata and controls

124 lines (78 loc) · 1.79 KB

To SSH into your Alpine Linux VM instead, the process is very similar — but Alpine is super minimal by default, so there are a few extra steps you may need to take first.


✅ Step-by-Step: Enable SSH Access on Alpine Linux

🥅 Goal

SSH from your main computer into the Alpine VM running on Proxmox.


🧰 1. Install OpenSSH Server (if not installed)

Log into the Alpine VM via the Proxmox console, then run:

apk update
apk add openssh

🔧 2. Enable & Start SSH Service

To start it immediately:

rc-service sshd start

To start it automatically on boot:

rc-update add sshd

🛡️ 3. Allow Password Authentication (if needed)

Edit the SSH config file:

vi /etc/ssh/sshd_config

Ensure this line is present and not commented:

PasswordAuthentication yes

Then restart SSH:

rc-service sshd restart

🌐 4. Check Alpine's IP Address

Run:

ip a

Look for an IP under eth0, eth1, or similar — e.g. 192.168.1.150.


🔐 5. SSH from Your Main Machine

Now, from your main machine:

ssh youruser@192.168.x.x

📝 Note

Alpine doesn't create a user by default unless you do it manually. If you're using root, make sure root login is allowed:

PermitRootLogin yes

Otherwise, you can create a new user:

adduser alice
passwd alice
adduser alice wheel   # Optional: add to sudoers group

Give sudo permissions (Alpine uses doas or install sudo):

apk add sudo

Then:

visudo

Add:

alice ALL=(ALL) ALL

Let me know if:

  • You’re getting an error
  • You want to use SSH keys instead of passwords
  • You want to expose it outside your LAN via port forwarding or reverse proxy