Re: setting a password less ssh connection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ian Malone <ibmalone@xxxxxxxxx> writes:
> This is not what the OP is trying to do (or, at least, I hope not...).
>
> Leave this alone, having passwordless accounts you can log into over
> ssh is an awful idea as mentioned above:
> #PermitEmptyPasswords no
>
> Add this to prevent authentication against the user's password:
> PasswordAuthentication no

And just to prevent pam from allowing a password login you also want
to add:

   UsePam=no

It is amazing now many linux and bsd systems get broken into and used
as ssh-password attacking zombies.  (From looking at my sshd logs I
see a few probes each day.)  I would be really nice if OS
distributions were to stop encouraging stupid behavior and not leaving
password logins open.

cat << EOF > /etc/ssh/sshd_config
Protocol 2
LogLevel VERBOSE
PermitRootLogin without-password
PasswordAuthentication no
ChallengeResponseAuthentication no
X11Forwarding yes
UsePam no
ClientAliveInterval  60
ClientAliveCountMax  30
EOF


-wolfgang
-- 
Wolfgang S. Rupprecht                http://www.wsrcc.com/wolfgang/

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux