Act faster with SSH Command Macros
Introducing SSH Command Macros: Register common commands for quick, one-click execution, enhancing efficiency and safety with confirmation for risky tasks
We are doubling down on SSH because you praised it and we can't thank you enough for this.
Now you can register common commands that you run usually. This way, you can execute them faster when you have to, with a simple click.
How does it work in details ?
From the side menu, access the SSH Command Macros
section.
Here are some examples :
free -m
Display the amount of free and used memory in the system (doc)ps
Report a snapshot of the current processes (doc)sudo systemctl restart nginx
Restart the nginx web server (or more generally, any service managed by systemd) (doc)
These are only suggestions, of course the possibilities are endless and it really depends on your use cases. For example, if you're running a Ruby on Rails application, you might want to register the command restarting puma
.
Some commands are more "dangerous" than others. For instance, getting a snapshot of the memory is read-only and therefore pretty safe. On the other hand, restarting a production web server can cause a downtime in some cases, for some architectures. When you flag it as "dangerous", the command is displayed in red and when you use it, you are asked to confirm it. This way, you avoid mistakes as much as possible.
Once you have defined your SSH Command Macros, you can go to you instances list and connect to SSH.
With a simple click, you can execute them !
As usual, if you have any question, we will be happy to help. You can reach out to us anytime, via the Give Feedback button present at the top of your Control Panel.
Chafik H'nini