LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   slackware64 14.2 can't log in using ssh (https://www.linuxquestions.org/questions/slackware-14/slackware64-14-2-cant-log-in-using-ssh-4175593478/)

unclejed613 11-13-2016 08:04 PM

slackware64 14.2 can't log in using ssh
 
trying to log into a fresh install of slack64 14.2 (and yes, i made sure the password is correct)

Code:

ssh root@192.168.0.xx
root@192.168.0.xx's password:
Permission denied, please try again.
root@192.168.0.xx's password:
Permission denied, please try again.
root@192.168.0.xx's password:
Permission denied (publickey,password,keyboard-interactive).

tried it from two different machines. never had this problem before with earlier versions of slack.

Emerson 11-13-2016 08:18 PM

SSH root logins are disabled default by upstream, I think.

unclejed613 11-13-2016 08:21 PM

how do i fix it?

Emerson 11-13-2016 08:25 PM

Quote:

Originally Posted by unclejed613 (Post 5630288)
how do i fix it?

By editing sshd_config?

CTM 11-13-2016 08:30 PM

The best option is to authorise an SSH key for the root account. It's more convenient than password-based auth, and more secure. If you can't (or don't want to) do that, replace the following line in /etc/ssh/sshd_config:

Code:

#PermitRootLogin prohibit-password
with:

Code:

PermitRootLogin yes
and restart sshd.

unclejed613 11-13-2016 09:02 PM

just tried it, still not working...also added
Code:

AllowUsers root
and it's still not working...

CTM 11-13-2016 09:06 PM

Remove the AllowUsers line: that'll also prevent any users other than root from logging in via SSH.

Did you remember to restart sshd?

Code:

/etc/rc.d/rc.sshd restart

unclejed613 11-13-2016 09:16 PM

i was trying to use
Code:

sshd -t
because it seemed the manpage for sshd said it rereads the conf file... tnx, it's working now.


All times are GMT -5. The time now is 02:16 PM.