15

How to setup/configure the Arch Linux bootcd (live-CD, ISO) so I can login to it using an SSH client?

And which password is by default set for the (automatic login) root account?

3 Answers 3

23

The default root password for the ISO distribution is blank, and by default you are not allowed to login with SSH using a blank password.

Therefore, two commands are necessary:

  1. passwd -- To set a non blank password for the currently logged in user ('root' for liveCD). Enter the password twice.

  2. Before September 2021: systemctl start sshd.service -- To start the ssh daemon.

    September 2021 and later: sshd is started by default.

Now you can login from your client machine using:

  • ssh root@ip-address or
  • ssh -o PreferredAuthentications=keyboard-interactive root@ip-address in case you have a keypair

PS. Don't know the IP address? The live-CD includes commands ifconfig and ip address.

0
3

The simplest way is to

  • install Arch onto an USB stick/harddisk (you can do this from the live cd)
  • in the new installation
    • set a root password (passwd)
    • allow ssh root login (vi /etc/ssh/sshd_config and append PermitRootLogin yes)
    • enable sshd (systemctl enable sshd)
    • also don't forget to enable systemd-networkd anything else you may need (like to preconfigure wifi)
  • boot the new machine from the usb device
2
  • 2
    The question is asking only for a solution for the live-CD (ISO) boot. installing onto USB stick/harddisk is out of scope for this question. Commented Mar 12, 2018 at 8:47
  • @ProBackup this answer is for people who are trying to install arch on a system without a display/keyboard Commented Mar 12, 2018 at 8:56
0

In my case it also necessary to ssh to the machine with -o PreferredAuthentications=keyboard-interactive to prevent my desktop from trying my RSA keypair first - which caused the connection to end due the ISO's configured maximum 1 attempts at authentication per connection.

Without this, or unsetting my SSH auth sock environment variable I was effectively unable to log into the Arch ISO environment.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.