Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
September 02, 2010, 08:42:22 AM

Pages: [1]   Go Down
  Print  
Author Topic: Secure the Secure Shell (SSH)  (Read 4954 times)
PeterM
Spacescooter Operator
*****
Offline Offline

Posts: 36


« on: May 09, 2005, 12:27:58 AM »

By default SSH will give root and any local user secure access to the server. For security reasons it is a good idea to change this setting and specify the users which are allowed to have SSH access. The configuration file for SSH is called sshd_config and is either in /etc or      /etc/ssh

Login to the server and on the command prompt do:

[root@office root]# vi /etc/ssh/sshd_config

things to change:

#don't allow root to SSH in to the server:
PermitRootLogin no

#users allowed to login:
AllowUsers user1 user2 user3

Now do a "shift zz" (hold down the shift key and tab 2 times the z key)
The configuration file now is saved and closed and you have to restart ssh:
[root@office root]# /etc/init.d/sshd restart
Stopping sshd:                                             [  OK  ]
Starting sshd:                                              [  OK  ]
[root@office root]#
 
Now you can SSH to your server with your username,then do a su on the command prompt and type in the root password to become root.
Logged
vlad.panainte
SysAdmin
Spacescooter Operator
*****
Offline Offline

Posts: 38


« Reply #1 on: July 08, 2007, 11:20:46 PM »

Also you can secure your ssh changing default port(22)
Change the port that SSH listens for connections on:

      #Port 22
      Port XX    (where XX = your new portnumber)
You can choose something like 22202 or something you can remember

  You are now done editing the /etc/ssh/sshd_config file (save your changes, and quit your editor).
Another important thing dont forgot to allow the port you choose from firewall:
/etc/apf/conf.apf
and you add there your new ssh port
I hope this help
Thank you
Logged
shenling
Newbie
*
Offline Offline

Posts: 2


« Reply #2 on: August 23, 2010, 02:56:35 AM »

straighteners ghd
new hair straighteners

hair straighteners best
curly black
straighteners hair
hair mini straighteners
mini straighteners
pink straighteners
hair straighteners mini
hair ceramic straighteners
wide straighteners
straighteners cheap
travel hair straighteners
hair straighteners cordless
hair straighteners babyliss
remington hair straighteners
hair coriolissvitton
louis vuitton
louis vuitton fake
louis vuitton authentic
2009 Cruise

Louis vuitton store
Collection Beach
Louis vuitton discount
Cruise Collection
Louis vuitton wholesale

Damier Azur
louis vuitton damier
Damier Canvas
bag on sale
Damier Geant

louis vuitton duffle bag
Damier Graphite
Louis vuitton case
Epi leather
Louis vuitton epi

Suhali Leather
Louis vuitton messenger bag
Utah Leather
Louis vuitton pochette
louis vuitton jewelry

Louis Vuitton Accessories
Louis vuitton sandals
Louis vuitton loafers
Louis vuitton sunglasses
Louis vuitton original

Louis Vuitton Graffiti
handbag discount
Louis Vuitton Mahina
Louis vuitton tote
Louis Vuitton Mens Wallet

Louis vuitton vintage
Louis Vuitton Scarf
Louis vuitton fabric
Louis Vuitton Ties
LV Shoes

Louis vuitton shoe
Monogram Canvas
monogram bag
Monogram Denim
Louis vuitton denim

Monogram Multicolore
Monogram Multicolor
Monogram Vernis
Louis vuitton vernis
Stephen Sprouse
Louis vuitton Pariscoach coupons

coach backpack
New Coach Bag

bags cheap
Coach Classic

coach discount
Coach Handbags 

coach purses cheap
Coach Purses

coach poppy
Coach Tote

coach outlet store

coach store
Coach Wallets

Coach Luggage
Coach leather bag

Coach Sandals

Coach Jewelry
Coach Accessories

Coach Sunglasses
Coach glasses

Coach Bags
Coach Handbags
Coach Purses
Coach Outlet
Coach Purses Outlet
Coach Bags Outlet
Coach Wholesale
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: