I'm trying to SSH from Debian (Jessie, installed as chroot environment in Chrome OS) to Arch on the same network, and I keep getting an error saying the connection was refused because of a public key error.
Enable password authentication on Server (your computer running arch-linux)
Edit the SSH configuration file on the server to allow password authentication.
[user@arch]$ sudo nano /etc/ssh/sshd_config
Use your favorite text editor instead of
nano, such as
vim. To use
vim, once it opens the file, hit i to switch to insert mode make your edits then press esc to leave insert mode and type
:wq and hit enter to write changes and quit.
sudo is not part of the initial installation of arch-linux. As an alternative login to root with
Now if key authentication fails you will be prompted to enter your password for the user account on the arch computer.
Generate key and send to Server
[you@debian]$ ssh-keygen [you@debian]$ ssh-copy-id user@arch-hostname