Installing Arch Linux

Arch Linux Install via SSH

If you are looking to install Arch Linux, look no further. I know there are a ton of written tutorials out there, not to mention the arch wiki, and YouTube videos galore, all set to show you how to install Arch, so why choose this one? Well the answer is simple, Why not?

In this tutorial we will add a few extra steps beyond the normal install process because we will be installing Arch Linux on a remote machine via ssh, as opposed to on the local machine. Now when I say “remote” I really mean 6 inches away from my “local” machine onto a laptop that is on the same table, but this will work for a machine that is much farther than 6 inches away as well.

Section 1 - Set Up Remote and Local Machines

This section will cover the few steps needed to allow for ssh install on the remote machine.

Step 1 - Boot Into Live iso

This sounds simple and obvious but you never know what kinds of questions you will get asked when creating a tutorial.

Step 2 - Set Password on Remote Machine

While you already were able to log into the iso, there needs to be a password created anyway so run the following command and create a password on the remote machine in the live environment, you should already be logged in as root user so sudo should not be necessary:

passwd 

set the password to whatever you want it to be, just make sure you remember it beause it will be used in the next section.

Step 3 - Edit SSH Config

Navigate to /etc/ssh and locate sshd_config, open using the editor or your choice or whatever you have installed.

  • find and uncomment the line with PermitRootLogin
  • change to PermitRootLogin=yes
  • save and exit

once this is done the last preparation step is to verify you have a network connection.

Now that we have the ssh config set up and have verified a network connection, now we turn our focus to our local machine.

To ssh into the remote machine correctly we need to run the following command

ssh -o StrictHostKeyCheck=no -o UserKnownHostsFile=/dev/null root@<remoteIpAddress>