Article View: alt.privacy.anon-server
Article #297949Re: sshd_config Help
From: Anonymous
Date: Mon, 12 Mar 2018 19:33
Date: Mon, 12 Mar 2018 19:33
143 lines
5292 bytes
5292 bytes
Nomen Nescio used his keyboard to write : > On Mon, 12 Mar 2018 13:45:03 -0400 (EDT), you wrote: >> >> Please note, I have no problems logging into my server via ssh >> using RSA public/private keys. >> >> I am trying to only allow ed25519 authentication to my VSP and >> can't seem to figure out what settings need to be disabled in my >> sshd_config file to only allow ed25519 login. I have already >> disabled root login priviledges and have added my ed25519 public >> key to my authorized_keys file and have added my ed25519 private >> key to Putty in the Auth settings. I have NOT deleted my previous >> RSA public keys as I wanted to confirm ed25519 was working properly. >> > Meant to type "VPS". > >> When I disable these options: >> >> # HostKeys for protocol version 2 >> # HostKey /etc/ssh/ssh_host_rsa_key >> # HostKey /etc/ssh/ssh_host_dsa_key >> HostKey /etc/ssh/ssh_host_ecdsa_key >> >> I cannot login to my server. Please note I am keeping a separate >> ssh logged in until I get everything working properly. I am also >> restarting sshd via this command: >> > I added Hostkey /etc/ssh/ssh_host_ed25519_key to my sshd_config > file and disabled the other settings above. I restarted sshd and > still cannot login to my server with ed25519 authentication. > <snip> > > This doesn't work: > > # HostKeys for protocol version 2 > # HostKey /etc/ssh/ssh_host_rsa_key > # HostKey /etc/ssh/ssh_host_dsa_key > # HostKey /etc/ssh/ssh_host_ecdsa_key > Hostkey /etc/ssh/ssh_host_ed25519_key Here is my sshd_config file. I didn't change anything in it at all. My /root/.ssh/authorized_keys file only contains the ed25519 key. cat sshd_config # Package generated configuration file # See the sshd_config(5) manpage for details # What ports, IPs and protocols we listen for Port 22 # Use these options to restrict which interfaces/protocols sshd will bind to #ListenAddress :: #ListenAddress 0.0.0.0 Protocol 2 # HostKeys for protocol version 2 HostKey /etc/ssh/ssh_host_rsa_key HostKey /etc/ssh/ssh_host_dsa_key HostKey /etc/ssh/ssh_host_ecdsa_key HostKey /etc/ssh/ssh_host_ed25519_key #Privilege Separation is turned on for security UsePrivilegeSeparation yes # Lifetime and size of ephemeral version 1 server key KeyRegenerationInterval 3600 ServerKeyBits 1024 # Logging SyslogFacility AUTH LogLevel INFO # Authentication: LoginGraceTime 120 PermitRootLogin yes StrictModes yes RSAAuthentication yes PubkeyAuthentication yes #AuthorizedKeysFile %h/.ssh/authorized_keys # Don't read the user's ~/.rhosts and ~/.shosts files IgnoreRhosts yes # For this to work you will also need host keys in /etc/ssh_known_hosts RhostsRSAAuthentication no # similar for protocol version 2 HostbasedAuthentication no # Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication #IgnoreUserKnownHosts yes # To enable empty passwords, change to yes (NOT RECOMMENDED) PermitEmptyPasswords no # Change to yes to enable challenge-response passwords (beware issues with # some PAM modules and threads) ChallengeResponseAuthentication no # Change to no to disable tunnelled clear text passwords #PasswordAuthentication yes # Kerberos options #KerberosAuthentication no #KerberosGetAFSToken no #KerberosOrLocalPasswd yes #KerberosTicketCleanup yes # GSSAPI options #GSSAPIAuthentication no #GSSAPICleanupCredentials yes X11Forwarding yes X11DisplayOffset 10 PrintMotd no PrintLastLog yes TCPKeepAlive yes #UseLogin no #MaxStartups 10:30:60 #Banner /etc/issue.net # Allow client to pass locale environment variables AcceptEnv LANG LC_* Subsystem sftp /usr/lib/openssh/sftp-server # Set this to 'yes' to enable PAM authentication, account processing, # and session processing. If this is enabled, PAM authentication will # be allowed through the ChallengeResponseAuthentication and # PasswordAuthentication. Depending on your PAM configuration, # PAM authentication via ChallengeResponseAuthentication may bypass # the setting of "PermitRootLogin yes # If you just want the PAM account and session checks to run without # PAM authentication, then enable this but set PasswordAuthentication # and ChallengeResponseAuthentication to 'no'. UsePAM yes # Added by DigitalOcean build process ClientAliveInterval 120 ClientAliveCountMax 2 #PasswordAuthentication yes
Technical Details
Message-ID:
<p86km9$54n$1@news.mixmin.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mailReferences:
<e27e74b2a81ba28c491b2fcf4b5adb55@foto.nl1.torservers.net> <24840fb0d81df41390f46810f1fa1c8f@dizum.com>Show Full Headers
Complete Article Headers
Message-ID: <p86km9$54n$1@news.mixmin.net> Subject: Re: sshd_config Help Date: Mon, 12 Mar 2018 14:33:26 -0500 From: Anonymous <anonymous@anonymous.com> References: <e27e74b2a81ba28c491b2fcf4b5adb55@foto.nl1.torservers.net> <24840fb0d81df41390f46810f1fa1c8f@dizum.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!apf1.newsdeef.eu!not-for-mail Content-Type: text/plain; charset="iso-8859-15"; format=flowed Mime-Version: 1.0 X-Newsreader: MesNews/1.08.06.00-gb Organization: Anonymous Injection-Date: Mon, 12 Mar 2018 19:33:30 -0000 (UTC) Newsgroups: alt.privacy.anon-server Content-Transfer-Encoding: 8bit X-Received-Bytes: 5288 X-Received-Body-Crc: 508203212 Reply-To: anonymous@anonymous.com