Where to find Archlinux in a VPS hosting service

W

You can find your favourite linux distribution at linode.com, a great hosting service where I’m transferring my blog and all other services I need. They offer great cheap VPS solutions, and you can choose Archlinux from the available linux distributions.
Archlinux is currently in testing: for example, ssh will not work after a fresh install. Here I’m going to explain how to fix this and how to access your VPS.

After the installation of Archlinux, if you try to connect to ssh, you will receive this error:

ssh yourUsername@yourIP
ssh: connect to host yourIP port 22: Connection refused

That’s because Archlinux does not install the openssh server by default. Let’s install it!
Linode offers a workaround to connect to your machines, called Lish, the LInode SHell. From this shell, you will be able then to connect to your machines.

ssh yourLinodeUsername@yourLinodeHost.linode.com

Where yourLinodeUsername is the username you chose for Linode registration, and yourLinodeHost is the host address of the machine (you can see it in this page, after a login: https://www.linode.com/members/remote.cfm, it’s in the form hostNUMBER).

You will be then prompted to Archlinux console. Use your root access and install ssh:

pacman -Sy
pacman -S openssh

Add sshd to your deamons array in /etc/rc.conf

DAEMONS=(… sshd …)

If you try to connect to your account via ssh, you will get another error at this time, because you need to allow external internet connections to the ssh daemon.
Your /etc/hosts.allow should look like this:

sshd: ALL

Start opensshd (/etc/rc.d/sshd start) or reboot the machine, you’re finished!

About the author

dgraziotin

Dr. Daniel Graziotin is a senior researcher (Akademischer Rat) at the University of Stuttgart, Germany. His research interests include human, behavioral, and psychological aspects of empirical software engineering, studies of science, and open science. He is associate editor at the Journal of Open Research Software and academic editor at the Research Ideas and Outcomes (RIO) journal. Daniel was awarded an Alexander von Humboldt Fellowship for postdoctoral researchers in 2017, the European Design Award (bronze) in 2016, and the Data Journalism Award in 2015. He received his Ph.D. in computer science at the Free University of Bozen-Bolzano, Italy.

Add comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

About Author

dgraziotin

Dr. Daniel Graziotin is a senior researcher (Akademischer Rat) at the University of Stuttgart, Germany. His research interests include human, behavioral, and psychological aspects of empirical software engineering, studies of science, and open science. He is associate editor at the Journal of Open Research Software and academic editor at the Research Ideas and Outcomes (RIO) journal. Daniel was awarded an Alexander von Humboldt Fellowship for postdoctoral researchers in 2017, the European Design Award (bronze) in 2016, and the Data Journalism Award in 2015. He received his Ph.D. in computer science at the Free University of Bozen-Bolzano, Italy.