LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 10-24-2021, 07:24 PM   #16
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,679
Blog Entries: 4

Rep: Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947Reputation: 3947

The authentication methodology used by ssh has always been very strange to me: it will "ratchet down" to the least secure form of authentication that you have allowed it to take – then accept that. You have to exclude "passwords" as an option if you intend to use certificates.
 
Old 10-24-2021, 07:29 PM   #17
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,463
Blog Entries: 7

Rep: Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561Reputation: 2561
Quote:
Originally Posted by sundialsvcs View Post
The authentication methodology used by ssh has always been very strange to me: it will "ratchet down" to the least secure form of authentication that you have allowed it to take – then accept that. You have to exclude "passwords" as an option if you intend to use certificates.
In Slackware you can use either certificates or passwords with the default config.

You can switch off password logins if you only want to use certificates, but you don't have to.
 
Old 10-24-2021, 08:34 PM   #18
HappyTux
Senior Member
 
Registered: Mar 2003
Location: Nova Scotia, Canada
Distribution: Debian AMD64
Posts: 4,170

Rep: Reputation: 244Reputation: 244Reputation: 244
Quote:
Originally Posted by lucmove View Post
And suddenly it's not slow anymore. Login is instant as expected. Shrug.

Anyway, it seems to me that the actual problem was that I generated a key and saved it to a file named sshkey, and it seems that OpenSSH absolutely expects it to be id_rsa. That's what broke everything. I thought that the ssh-copy-id command would be enough to send the key to the remote authorized_keys file and everything would fall into place. That was my mistake.

I'm closing this issue. Many thanks to all. I certainly appreciate the attention.

SOLVED.

Good to read you got it going there is probably a config option to be passed on the command line that would allow the odd name, I know there is one for having a different directory for the config files I just go with the standard one as all I do is copy the files that already exist and usually only have to do a single deletion in the known hosts for a conflict there the first time used and everything then just works..
 
Old 10-24-2021, 08:39 PM   #19
evo2
LQ Guru
 
Registered: Jan 2009
Location: Japan
Distribution: Mostly Debian and CentOS
Posts: 6,724

Rep: Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705Reputation: 1705
Hi,
Quote:
Originally Posted by sundialsvcs View Post
The authentication methodology used by ssh has always been very strange to me: it will "ratchet down" to the least secure form of authentication that you have allowed it to take – then accept that. You have to exclude "passwords" as an option if you intend to use certificates.
Really? That has never been my experience. Might be good to provide some more information. What sshd are you using and what sshd_config?
Or perhaps you have set PreferredAuthentications in you ssh client config?

From man 5 ssh_config (openssh 8.4)
Code:
     PreferredAuthentications
             Specifies the order in which the client should try authentication methods.  This al‐
             lows a client to prefer one method (e.g. keyboard-interactive) over another method
             (e.g. password).  The default is:

                   gssapi-with-mic,hostbased,publickey,
                   keyboard-interactive,password
Evo2.
 
Old 10-25-2021, 02:50 AM   #20
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,335
Blog Entries: 3

Rep: Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730Reputation: 3730
Quote:
Originally Posted by sundialsvcs View Post
You have to exclude "passwords" as an option if you intend to use certificates.
The original post is about keys, though, not certificates. All three, or any one or two, can be used if the server is set up to do so in /etc/ssh/sshd_config via the AuthenticationMethods directive. So the server can even be set to require both a key and a password, in either order.
 
  


Reply



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
[SOLVED] Why can't set ssh auto login without password? luofeiyu Linux - Server 3 12-30-2016 07:19 AM
LXer: SSH login without password using SSH keys LXer Syndicated Linux News 0 09-21-2014 01:36 AM
Secured ssh login without password and without paraphrase? Xeratul Linux - Security 10 10-01-2013 08:16 AM
ssh to server without password and without changing the server's setup alex170872 Linux - Networking 10 12-05-2012 09:01 AM
[SOLVED] ssh scp key not working to ssh/scp without password anon091 Linux - Newbie 9 08-22-2011 04:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:19 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