Article View: alt.privacy.anon-server
Article #297953Re: sshd_config Help
From: Anonymous
Date: Mon, 12 Mar 2018 22:05
Date: Mon, 12 Mar 2018 22:05
142 lines
5146 bytes
5146 bytes
Anonymous presented the following explanation : > On Mon, 12 Mar 2018 14:33:26 -0500, you wrote: >> >> Nomen Nescio used his keyboard to write : >>> On Mon, 12 Mar 2018 13:45:03 -0400 (EDT), you wrote: >>>> > <snip> >> 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 > > I use a different port number So do I but I changed it here so as to not reveal it. > >> >> # 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 > > I have ServerKeyBits 768 Keep your RSA key in authorized_keys in the mean time so you don't lock yourself out and keep another connection open as you have been doing. Try changing to ServerKeyBits 1024 and restart ssh. Try to login ed25519. > >> >> # Logging >> SyslogFacility AUTH >> LogLevel INFO >> >> # Authentication: >> LoginGraceTime 120 > > I have LoginGraceTime 30 > >> PermitRootLogin yes I have PermitRootLogin no >> StrictModes yes > > I have AllowUsers remoteuser1 remoteuser2 > >> >> 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 > > I have UsePAM no > >> >> # Added by DigitalOcean build process >> ClientAliveInterval 120 >> ClientAliveCountMax 2 >> >> #PasswordAuthentication yes > > If I delete my RSA Public Keys from Authorized_Keys, I cannot login > with my ed25519 public key. Yes, don't delete it until your ed25519 is working. Recheck you putty parameters and make sure that you are pointing correctly to the ed25519 secret key.
Technical Details
Message-ID:
<p86tjq$k5r$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> <p86km9$54n$1@news.mixmin.net> <d5e60beffcfd0c2130655e9331719dd7@hoi-polloi.org>Show Full Headers
Complete Article Headers
Message-ID: <p86tjq$k5r$1@news.mixmin.net> Subject: Re: sshd_config Help Date: Mon, 12 Mar 2018 17:05:40 -0500 From: Anonymous <anonymous@anonymous.com> References: <e27e74b2a81ba28c491b2fcf4b5adb55@foto.nl1.torservers.net> <24840fb0d81df41390f46810f1fa1c8f@dizum.com> <p86km9$54n$1@news.mixmin.net> <d5e60beffcfd0c2130655e9331719dd7@hoi-polloi.org> 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 Injection-Date: Mon, 12 Mar 2018 22:05:46 -0000 (UTC) X-Received-Bytes: 5142 X-Received-Body-Crc: 3306226618 Reply-To: anonymous@anonymous.com Mime-Version: 1.0 Organization: Anonymous X-Newsreader: MesNews/1.08.06.00-gb Newsgroups: alt.privacy.anon-server Content-Type: text/plain; charset="iso-8859-15"; format=flowed Content-Transfer-Encoding: 8bit