SME Linux SSH "No supported authentication methods available"
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
SME Linux SSH "No supported authentication methods available"
I'm trying to get a server up and running behind a firewall, and I'm trying to access it on the lan remotely via PuTTY with it's IP address, but I get this message:
No supported authentication methods available
I installed ssh using:
yum install openssh
I created an rsa key
In sshd_config...
I tried changing PasswordAuthentication No to:
PasswordAuthentication yes
I also tried changing PubkeyAuthentication yes to:
PubkeyAuthentication no
But then I changed it back again, because the result was the same.
/etc/hosts.allow
sshd: ALL
For some reason, when I restart:
/etc/init.d/sshd restart
The output is:
Stopping sshd: [FAILED]
Starting sshd: [ OK ]
Here's mine it's a bit shorter but works. I can use keys or login with password.
Your issue may not be the config as when you restart you get the failed to stop. Are you sure sshd is running after you start it? Does the log say anything when you restart?
--------------------------------------------------
Port 22
Protocol 2
SyslogFacility AUTHPRIV
PermitRootLogin no
PasswordAuthentication yes
ChallengeResponseAuthentication no
GSSAPIAuthentication yes
GSSAPICleanupCredentials yes
UsePAM yes
X11Forwarding yes
Subsystem sftp /usr/libexec/openssh/sftp-server
--------------------------------------------------
PasswordAuthentication is listed twice in your config and a few others are listed twice you may have conflicting config. Try a shorter one or the default and add the other settings in small groups or one at a time.
Thanks for your help. I think I'm gonna bail on this OS though. It looks like SME is a little too paranoid for me. I've read through a lot of the documentation, but still no success. Kinda reminds me of my experience with RedWall. I've done fine with some of the larger ones... RedHat7, OpenSuse, and now Ubuntu on another server. But I'd like to find a server distro with a smaller footprint. I was thinking about ClarkConnect... but I don't want to back myself into a corner of possibly having to pay for the OS. I've also considered White Hat, but it looks like it's 4 CD's. Now I've been thinking to give Annvix a try. Anyway, it seems to me that I could have something up and running before I get SME figured out.
Before you ditch it, it seems your sshd fails to start properly. If there is nothing in the logs that seem relevant you could run it manually from the commandline with the switches you usually run and supply "-d" you get debug level output. If that doesn't show any clues you can add up to a total of three "-d" switches for maximum verbosity.
I use sme I set up secure shell but it's been a while, you probably all ready know you cannot change parameters in files you have to create a file with the changes and the use the expand function. I can not tell how it has been to long but go to the sme forums or google sme secure shell or what and you'll find the answer. do not give up sme is a great server and there is a lot of support. But there is a learning curve.
Good luck
Bill
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.