I tried using ConoHa VPS, so I’ll make notes about SSH and IP address addition. It was my first VPS, so I was worried, but it’s not much different from rental servers.
Using SSH
SSH connection is enabled by default.
- Connect with rmate ssh -R 52698:localhost:52698 [email protected]
- Connect normally ssh [email protected]
How to check IP address
Click VPS server → Network information → IP address, and you can know the IP address without ifconfig.
How to remote desktop to VPS
Of course, you can also remote desktop to VPS. It’s convenient when you want to use Chrome.
How to install and configure vncserver on ubuntu: [googlecustom “vncserver ubuntu”]
Once you’ve installed vncserver and started it, install VNC viewer from here, type “YOUR IP ADDR:5901” in the search box and you should be able to start it. If the desktop screen appears on the screen, you’ve succeeded. Try starting Chrome with a command.
Running hitleap on VPS
wget https://hitleap.com/viewer/download?platform=Linux
mv download?platform=Linux hitleap.tar.xz
tar Jxfv hitleap.tar.xz
Open the folder and click hitleap viewer to start it.
Adding IP address
Configure following the official guide.
Next, it seems to differ by OS, so let’s look at the Ubuntu method.
rmate /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
source /etc/network/interfaces.d/*
# The loopback network interface
auto lo
iface lo inet loopback
# The primary network interface
auto ens3
iface ens3 inet dhcp
iface ens3 inet6 dhcp
accept_ra 1
# Additional IP address
auto ens3:1
iface ens3:1 inet dhcp
address 133.130.94.20
netmask 255.255.254.0
gateway 133.130.94.1
# Below: Failed examples
# auto eth0:1
# iface eth0:1 inet static
# address 133.130.94.20
# netmask 255.255.254.0
# gateway 133.130.94.1
After configuring as above, reboot.
sudo reboot
After reboot, run ifconfig to confirm the IP address has been added.
ifconfig
Summary
This time, I wrote about how to perform initial settings, SSH configuration, and IP address addition in ConoHa VPS.
VPS is not much different from rental servers, so people who have used rental servers should be able to use it right away.