LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-13-2016, 08:04 PM   #1
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Rep: Reputation: 32
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.
 
Old 11-13-2016, 08:18 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
SSH root logins are disabled default by upstream, I think.
 
Old 11-13-2016, 08:21 PM   #3
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Original Poster
Rep: Reputation: 32
how do i fix it?
 
Old 11-13-2016, 08:25 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Originally Posted by unclejed613 View Post
how do i fix it?
By editing sshd_config?
 
Old 11-13-2016, 08:30 PM   #5
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
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.
 
1 members found this post helpful.
Old 11-13-2016, 09:02 PM   #6
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Original Poster
Rep: Reputation: 32
just tried it, still not working...also added
Code:
AllowUsers root
and it's still not working...
 
Old 11-13-2016, 09:06 PM   #7
CTM
Member
 
Registered: Apr 2004
Distribution: Slackware
Posts: 308

Rep: Reputation: 287Reputation: 287Reputation: 287
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
 
Old 11-13-2016, 09:16 PM   #8
unclejed613
Member
 
Registered: Mar 2009
Posts: 352

Original Poster
Rep: Reputation: 32
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrong incoming ssh ports in /var/log/auth.log ? electronicsguy Linux - Newbie 2 05-10-2015 03:02 PM
[SOLVED] raspbian: how to log in via ssh through wlan? (dont work; but ssh via LAN works) floppy_stuttgart Debian 8 03-24-2014 01:42 PM
how to log ssh activity in /var/log/ssh/ssh*.log MrUmunhum Linux - Server 3 11-02-2011 02:25 AM
[SOLVED] how to log in with ssh without having someone log into the machine mandu Linux - Newbie 2 07-12-2011 09:49 AM
Log all SSH commands at ssh-client. mohammednv Linux - Networking 6 01-26-2008 05:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration