SSH fails. Arch linux

Hi,

I have installed arch linux on my raspberry pi and I am now trying to shh to the pi.

The problem that I am having is that it does not even ssh when I try to ssh to localhost

(ssh root@localhost)

I know I should not ssh into root and yes I did change sshd config file to allow root login via ssh. I do not get any error message or anything it simply does not connect at all. It does nothing , I have to shut it down by force.

I have no idea why it does not work. Any idea?

 

thank you for reading and kind regards,
oldman

Did you allow SSH in iptables?

https://wiki.archlinux.org/index.php/simple_stateful_firewall

just to make sure: have you enabled ssh ?

if not, attach a monitor and  a keyboard:

systemctl start sshd.service

systemctl enable sshd.service

 

Also why on earth do you need root access ?

Hi,

thanks for the reply

I do not need root access and I will deactivate it.
I did enable and start the sshd.service.


It is connected to a monitor and keyboard. So what I wanted to do is to login to my raspberry pi with my normal account and then try to ssh to root simply to see if ssh was working.
I thought this is an initial test to check if ssh works. You login normally and ssh to a different account on the same machine to see if ssh itself works.

kind regards,
oldman

You login normally and ssh to a different account on the same machine to see if ssh itself works.

Ok fair enough, why didn't you make another account and ssh into that ? Why are you fussing with the ssh config to shoehorn in root access ?

I can't help you with ssh-ing into root because i've never done that.

set up a user account for testing your ssh

https://wiki.archlinux.org/index.php/Users_and_Groups

useradd -e [yyyy-mm-dd]  [username]    lets you specify an account disable date, incase you are forgetful and need a security safety-net.

you need to issue an user-password or the account won't be enabled.

passwd [username]

 

 

Thanks for the help.

ssh works now. only had to update pacman.

kind regards,
oldman