SSH access that closes on its own: why we did it this way

Published on 2026-09-12 by frfrand

The problem is not opening an access, it is remembering to close it. How an SSH access with expiration works and what changes when requesting permission stops being permanent.

SSH access that closes on its own: why we did it this way

Short answer: an expiring SSH access is opened with a closing time, and a control process closes it automatically when it arrives, without relying on someone remembering to do it. In ArduMaker, the SSH of a VPS can be enabled for a number of hours (when creating the VPS it remains open for 6), although there is also an unlimited option.

Every team has a version of this story.

Someone needed to access the server on a Tuesday afternoon. Access was opened. The problem was resolved. And access remained open, because closing it was not urgent for anyone, and the urgent always wins over the important.

Six months later, no one remembers it is open. And that is where it stops being an anecdote.

The problem is not opening, it is closing

It is worth separating them well, because they are confused: opening access is almost always justified. Someone has to check a log, restore something, diagnose a failure.

What fails is the other end. Closing access has no urgency, no clear owner, and no one finds out if it is not done. It is a task that depends entirely on the memory of a busy person.

Any process that depends on that will fail. Not sometimes: always, given enough time.

How expiring access works

In ArduMaker, when you enable SSH on a VPS, you can give it a duration: the port does not remain open "until someone closes it", but with a closing timestamp. When creating a VPS, for example, SSH opens for only 6 hours. There is also an unlimited option, and the panel warns when it is chosen.

A control process periodically checks those timestamps. When one expires, it closes the port. No intervention, no reminder, no relying on someone being available.

From the user's side, nothing changes: it is normal SSH, with your usual client and your key or your password. The difference is what happens when you stop using it.

The most valuable side effect

There is a consequence that is not immediately obvious and ends up being the most valuable.

Requesting access stops being a heavy decision.

When opening access entails an indefinite consequence, people ask for "everything, just in case", so they don't have to ask again. When access reverts on its own, requesting is cheap. And because it is cheap, people ask exactly for what they need, for the time they need it.

It is the same phenomenon as with backups: when restoring is easy, people test restorations. When it is an operation, they never test them.

What remains recorded

Every SSH opening is recorded in the VPS activity log, with who did it and when, and while it is open the panel shows how much time is left. Every command executed from the panel or via the MCP is also logged with who launched it (the interactive terminal is not included in that log).

This answers the question that always arises after an incident, which is not "who is to blame?" but "what was touched and when?". Without a log, the answer is reconstructed from memory and halfway.

If you want something similar without our platform

The idea can be applied on any server, and it is worth it even if done manually:

  • A scheduled task that closes the port at a fixed time, instead of leaving it open.
  • SSH keys with expiration date: SSH certificates allow issuing credentials that expire on their own.
  • And the simplest of all: review once a month what is open. Almost always there is a surprise.

What matters is not the tool. It is moving the closure from "someone has to remember" to "it happens on its own".

Verify that access closure works

Temporary permissions only help if they are actually revoked upon expiration. On an ArduMaker VPS, when you enable administrative access, check who requested it, what resource it reaches, and how to confirm that it has been closed.

For a collaborator who needs continuous access to a specific environment, an individual account with minimal permissions is usually more appropriate than sharing an administrator's identity. Avoid automating network openings without recording duration and justification.

Related: How to give access to your team · What is SSH.

Frequently asked questions

Can I leave SSH open without expiration? Yes, there is an unlimited option, and the panel shows a warning while it is like that. It is advisable to use it only when really necessary.

Can I limit from which IP access is allowed? Yes. SSH arrives through a port forwarding, and port forwardings can have a source IP policy.

How do I do something similar on my own server? With a scheduled task that closes the port at a fixed time, or with SSH certificates, which issue credentials with an expiration date.

  • ArduMaker
  • SSH
  • seguridad
  • accesos temporales
  • VPS

Keep reading

All articles · VPS plans