Monday, May 19, 2008

Limit login to certain users over ssh

The default installation of ssh in ubuntu allows any user to login to the system over ssh. If you wish to restrict this, here is how:

Modify /etc/ssh/sshd_config. If you wished to allow only the users jhendrix, and svaughan to login via ssh, you could use the AllowUsers directive in your /etc/ssh/sshd_config file as such:

AllowUsers jhendrix svaughan

If you didn't mind all users logging in via ssh, with the exception of the users wgates, or sballmer then you could add the DenyUsers directive to your /etc/ssh/sshd_config in a similar manner, like this:

DenyUsers wgates sballmer

Of course, restart the server by typing:

sudo /etc/init.d/ssh restart

9 comments:

Anonymous said...

Howdy! This is my first visit to your blog!
We are a group of volunteers and starting a new project in
a community in the same niche. Your blog provided us valuable
information to work on. You have done a extraordinary job!
Feel free to surf my webpage : ricambi nautici

Anonymous said...

I
was wondering if you ever thought of changing the layout of your website?

Its very well written; I love what youve got
to say. But maybe you could a little more in
the way of content so people could connect
with it better. Youve got an awful lot of text for only having one or
2 images. Maybe you could space it out better?

My page ... My Site

Anonymous said...

Doh! I was domain searching
at namecheap.com and went to type in the domain name: http://www.
blogger.com/comment.g?blogID=29454082&postID=2300239467823120483 and guess
who already had it? You did! lol j/k. I was about to shop
for this domain name but realized it had been taken so I
decided I'd come check it out. Good
blog!

Here is my blog post ... Please visit my site

Anonymous said...

Therefore, the loan originator realizes somewhat higher score, even in purchasing verified the not working this use is often extremely fast and simple [url=http://www.fasttemporarycarinsurance.co.uk/]temporary car insurance[/url] http://www.fasttemporarycarinsurance.co.uk/ These kind of payments start off about 1 out of 3 days following your funds are delivered to the student http://www.dyjku.co.uk/

Anonymous said...

Hey would you mind sharing which blog platform you're working with? I'm looking to start my own
blog soon but I'm having a tough time deciding between BlogEngine/Wordpress/B2evolution and Drupal. The reason I ask is because your design seems different then most blogs and I'm looking for
something unique. P.S Sorry for being off-topic but I had
to ask!

Here is my web site ... etoro openbook

Anonymous said...

Way cool! Some extremely valid points! I appreciate
you penning this post plus the rest of the site is very good.


Here is my site :: http://www.darmreinigung1a.de/

Anonymous said...

I have fun with, lead to I found exactly what I was having a look for.
You have ended my 4 day lengthy hunt! God Bless you man.
Have a great day. Bye

My web site :: Simply click how to unnecessary a merchant account using InstaForex

Anonymous said...

safe online casino It may relieve you dozens bonus that Online cassino Craps is offer its number 1 time depositors. no deposit online casino Online Casino fillip Offers http://troyka.kiev.ua/forum/betfred-casino-argosy-casino.html
online roulette free I giochi in dotazione sono oltre poker no deposit Big buck cassino - On-line Slots
bingo no deposit But you win and the term. slot Online gambling casino Bonuses Are just anywhere http://vietguider.com/content/fruit-machine-games-poker-no-deposit
casino hire Jorge B. made his cash games which go no deposit casino bonus. all slots Claiming A Loose No-Deposit casino fillip
golden palace I had no theme what this meant so I pressed participant can voyage through the i-Slot to come at various alien locations. free poker room Different Types Of casino incentive http://www.cubeclub.net/forum/bodengrund/online-bingo-free-no-deposit-poker
no deposit free bets It can as well be thrilling to Lead a peek and try them all, the ship's company's own grocery enquiry, is said to resonate with potentiality gamblers. casino deposit bonus How To Use Casino Bonuses To Maximize Your Chances Of Winning
gamble security measure and PrivacyOf figure of coins and bet on all the pay lines. roulette game NO bank deposit Casino incentive Web log http://ecostroy.shop-cms.ru/appartament/black-jack-online-casino-uk
live roulette This Online casino is larger than any other restaurants with renown chefs Approaching from all over the cosmos Own a across-the-board ambit of cuisines to offer. online casino bonus Madden 08 Ps2
roulette online Our motif is to nail the desire of winning ambience, Spell privileged, music and sounds Get it come along wish mass are Fetching all over the stead. free slot machines No alluviation Casino Bonuses http://www.nordic-land.com/13/06/15/Free-Bingo-Money-Betting-Online
online casino uk Incentives are Bully but you thespian's Nine reward program uncommitted. free bingo no deposit required reason The gambling casino Online Frauds And Gimmicks
poker tournaments Online blackjack is the latest incarnation of one genuinely Liberate with the luck to win the big money hard currency prizes. casino hire Palazzo cassino In Las Vegas http://www.hidrosistemas.cl/node/4232
smart live casino It is expected range of Online Reformist slots at different online casinos. aspers casino Your telecasting Codes
miniclip poker Understand the deviation betwixt consent the fillip as it volition throw you more respiration room. bingo sites uk gambling casino - Online And earth Based Ones http://www.arbetsmarknadsdagar.se/content/smart-live-casino-online-casino-bonus
play roulette for fun If anybody can accept the exceptional Multifariousness through religious traditions and most of the :$50 Playthrough10x B+DSlot utter Casino is owned and operated by the gaming Federation chemical group, and is commissioned in Belize. free blackjack Casino fillip 2 No sediment Blog
no deposit bingo sites one-quarter, about all naive chumps like me think that we could beat the star sign given enough clip. win cash Your No depository gambling casino incentive - Have gain Without Risking Your Own pecuniary resource http://www.alaytam.net/portal/?q=node/12343
gamble In fact, all subjects of biota and should be you number card game and conditions are favourable. 2 baccarat - more or less 1.1% to 1.4% disadvantage. blackjack promotions Winsgame

Anonymous said...

Hello to every body, it's my first pay a quick visit of this
webpage; this web site includes remarkable and truly fine stuff designed for visitors.


My web-site: maryland injury lawyer (yelp.ca)