[LINUX] Connect to VPN with your smartphone and turn off / on the server

I made a VPN connection to the server and turned the server off and on with my smartphone (Android). It's just that. It's a reminder of the procedure because I rarely do it.


There are times when you need to turn the server off and on on holidays. (Construction and inspection of power supply in the building)

Work style reform

In the first place, it is bad that the server is on-premises, I don't want to go to work on holidays. So I connect to VPN from home and operate it. There are times when you have to deal with while you are out. Carrying a PC for work, even though I'm out with my family, is going against the times, and my family is likely to say something.

So, I tried to operate everything with my smartphone.

Power off

VPN connection with UTM maker's smartphone app Ssh connect to the server with ConnectBot su --upstart shutdown -h now

Power on

VPN connection with UTM maker's smartphone app Remote management function of server (A function that allows you to turn the power on and off even if the server is not running) Then, turn on the power of the server.


It's frustrating if the login password set is a smartphone, If you pretend to look for delicious food on the go, your family won't know what you're doing. Peace is the best.

Recommended Posts

Connect to VPN with your smartphone and turn off / on the server
Linking Python and Arduino to display IME On / Off with LED
Put Cabocha 0.68 on Windows and try to analyze the dependency with Python
Log in to the remote server with SSH
How to turn off the scale value display while leaving the grid with matplotlib
Drawing tips with matplotlib on the server side
Power on / off your PC with raspberry pi
Introduction to Python with Atom (on the way)
Connect your Raspberry Pi to your smartphone using Blynk
Connect to MySQL with Python on Raspberry Pi
Control music playback on a smartphone connected to Raspberry Pi 3 and bluetooth with AVRCP
[CGI] Run the Python program on the server with Vue.js + axios and get the output data
Steps to install the latest Python on your Mac
[python] option to turn off the output of click.progressbar
Post to your account using the API on Twitter
Execute the command on the web server and display the result
Automate Chrome with Python and Selenium on your Chromebook
Install django on python + anaconda and start the server
It's getting cold, so I tried to make it possible to turn on / off the AC heater automatically with Raspberry Pi!
POST the image selected on the website with multipart / form-data and save it to Amazon S3! !!
Scraping with Python + Selenium to add Apple refurbished products to your cart and notify on line
Memo to get the value on the html-javascript side with jupyter
screen and split screen with python and ssh login to remote server
[pyqtgraph] Add region to the graph and link it with the graph region
Encourage your company to join the Advent Calendar with Errbot
Access the host SQL Server with python27 / pyodbc on the container
Recognize your boss and hide the screen with Deep Learning
Build a Python environment and transfer data to the server
"Deep copy" and "Shallow copy" to understand with the smallest example
Connect to centos6 on virtualbox with ssh connection from Mac
Connect the Jupyter Notebook kernel to Spyder with Jupytext enabled
To disable the browser cache on Python's simple HTTP server
Save images on the web to Drive with Python (Colab)
Install the latest version of Git on your Linux server
You there who want to launch Rails on both the host and the client with Docker Compose!
Connect to BigQuery with Python
Connect to Wikipedia with Python
Connect to Postgresql with GO
Turn off the brew warning
How to get and set the NTP server name by DHCP
Repeat with While. Scripts to Tweet and search from the terminal
A note on how to check the connection to the license server port
Easy way to round off to the nearest whole number with python3
Build a Python environment on your Mac with Anaconda and PyCharm
Install Ubuntu 18.04 on MacBook Pro Touchbar model and connect to WIFI
SSL-enable multiple sites on one server with nginx and Let's Encrypt
How to run Jupyter and Spark on Mac with minimal settings
How to install pandas on EC2 (How to deal with MemoryError and PermissionError)
Take an image with Pepper and display it on your tablet
How to get all traffic through VPN with OpenVPN on Linux
Disguise the grass on GitHub and try to become an engineer.
Synchronizing with the server port forwarding ssh on localhost fails [Resolved]
I tried to get started with Bitcoin Systre on the weekend
Script for backing up folders on the server to Google Drive
I want to connect remotely to another computer, and the nautilus command
The strongest way to use MeCab and CaboCha with Google Colab
To improve the reusability and maintainability of workflows created with Luigi
The road to installing Python and Flask on an offline PC
Settings until the Dango project is started on the server with Pycharm
I tried to push the Sphinx document to BitBucket and it will be automatically reflected on the web server
Upload data to s3 of aws with a command and update it, and delete the used data (on the way)