Sunday, April 22, 2012

Changing the default SSH port number and not allowing root logins on Debian.

Changing the default SSH port number and not allowing root logins on Debian.

 The Secure Shell Protocol (OpenSSH is a FREE version of SSH) by default uses port 22. Changing the default SSH port will stop many automated attacks and make it harder to guess which port SSH is accessible from.

1.) As root, use your favorite text editor (nano) to edit the sshd configuration file.

2.) Edit the line which states 'Port 22'. Choose a port not currently used on the system. I used 'Port 49999' for this example.

3.) While we have sshd_config in our editor, lets disable root login through SSH. Look for 'Authentication' section and change 'PermitRootLogin' to 'no'.

4.) You need to restart SSH daemon for changes to take effect.

5.) Before disconnecting from your current SSH session, verify SSH is listening on the new port by connecting to it from another terminal.

Sunday, April 8, 2012

91 Berkeley Software Distribution Links

Berkeley Software Distribution Links (91):

Feel free to add more links in the comments.



Blogs, Docs, How-Tos, Info, and News (19)
Canada BUGS (3)
Certification and Training (1)
Conference, Expo, and Shows (6)
Downloads: Packages, Ports, Torrents (6)
Flavors (24)
Forums (7)
International BUGS (3)
Magazines (1)
Podcasts (4)
Shopping (1)

Blogs, Docs, How-Tos, Info, and News (19):


A Year in the Life of a BSD Guru - Follow the ups and downs of a BSD sysadmin, trainer, author and advocate while gaining insight into the BSD community and what it is like to live in the shadow of Linux, BSD's younger but flashier cousin. is a planet for BSD news, aggregating feeds from blogs and web on all aspect of BSD.

BSD Guides - Doing stuff with FreebSD, NetBSD, OpenBSD, and Mac OS X.

BSD Nexus - "UBER" means I don't drink the coffee ... I chew the beans instead!!!

BSDpants - Tips for the FreeBSD user. No shirt, no shoes, no kerne1 hacking! ... just making FreeBSD work great for you.

DragonFly BSD Digest - A running description of activity related to DragonFly BSD.

FreeBSD Diary has been providing practical examples since 1998. The preference here is FreeBSD, a solid and reliable UNIX-like operating system.

FreeBSD Foundation is a 501(c)(3) non-profit organization dedicated to supporting the FreeBSD Project. The Foundation gratefully accepts donations from individuals and businesses, using them to fund projects which further the development of the FreeBSD operating system. In addition, the Foundation can represent the FreeBSD Project in executing contracts, license agreements, and other legal arrangements which require a recognized legal entity. The FreeBSD Foundation is entirely supported by donations.

FreeBSD - the unknown Giant will keep you updated with everything that's going on with regards to to FreeBSD and FreeBSD-based-operating systems.

FreshPorts has everything you want to know about FreeBSD software, ports, packages, applications, whatever term you want to use.

hubertf's NetBSD blog; It's hubertf's NetBSD blog... check it out!

Me, BSD: Online Network Tools and Manuals

niXdoc *nix Documentation Project

OpenBSD 101; tutorial for beginners

OpenBSD Journal is constantly on the lookout for stories of how you put OpenBSD to work.

PC-BSD Blog; The official blog of the PC-BSD operating system, which has been designed with the “casual” computer user in mind. It offers the stability and security that only a BSD-based operating system can bring, while at the same time providing a comfortable user experience, allowing you to get the most out of your computing time. With PC-BSD you can spend less time working to fix viruses or spyware and instead have the computer work for you.

Polarwave's OpenBSD Tips and Tricks for Newbies - This site is devoted to just that, tips and tricks, things to make your life easier when coming to the world of BSD.

Slashdot BSD News for Nerds. Stuff that Matters.

SpreadBSD UNIX for the Masses.

Canada BUGS (3):


Calgary Unix UG
Greater Toronto Area BUG
Windsor Unix Users Group

Certification and Training (1):



Conference, Expo, and Shows (6):



Downloads: Packages, Ports, Torrents (6):


FreeBSD Ports
FreshPorts Lists changes made to FreeBSD ports tree.
gotBSD torrents
OpenBSD Torrents
OpenPorts ports
pbi Directory packages for PC-BSD

Flavors (24):


BSDanywhere OpenBSD LiveCD
Damn Small BSD
DragonFly BSD
FreeNAS Network-Attached Storage Server
Frenzy FreeBSD LiveCD (portable sys admin toolkit)
GhostBSD LiveCD based on FreeBSD
GNOBSD LiveDVD/USB based on OpenBSD
jggimi OpenBSD LiveCD/DVD
Jibbed NetBSD LiveCD
m0n0wall firewall
OliveBSD LiveCD
pfSense firewall, router, etc.
Quetzal OpenBSD LiveCD
RoFreeSBIE LiveCD / Install

Forums (7):


DesktopBSD Forums
PC-BSD Forum
Screaming Electron Forums
Unix Forums, The
Unix Guru Universe

International BUGS (3):


BUGS [BSD Users Group, Sydney]
German Unix User Group
HUMBUG University of Queensland, Brisbane, AU

Magazines (1):


BSD Magazine

Podcasts (4):


BSD Show!, The
FreeBSD For All
Unix Clubhouse

Shopping (1):


BSD Mall

UK BUGS (1):


BSD Groups UK

USA BUGS (15):


Bend Free Software User Group
Berkeley Unix User Group Berkeley, CA
Capital Area BUG
Front Range Unix Users Group Boulder, CO
New England BUG
New York City BUG
Norman Unix Liberation League
OKCForum http://www.okcforum.orgPhxBUG Phoenix, AZ
San Francisco OpenBSD Users Group
Silicon Valley BUG
Southern Connecticut Open Source User Group
Southern Utah Unix Users Group
Tidewater Unix User's Group Hampton Roads, VA
Tucson Free Unix Group Tucson, AZ

Wednesday, April 4, 2012

powerd on FreeBSD

Using powerd to control the CPU speed automatically on FreeBSD.

1.) Insert the following line into /etc/rc.conf:

2.) Run /etc/rc.d/powerd start: