3. May 2009

0 Comments

Chroot Sftp

Create a Chrooted group addgroup chrooted Open up /etc/ssh/sshd_config and add the following to the end of it Subsystem sftp internal-sftp Match group chrooted ChrootDirectory /home/%u X11Forwarding no ForceCommand internal-sftp Restart SSHD /etc/init.d/ssh restart Then make users chrooted by adding them to the chrooted group adduser user chrooted Now when the user sftps the server [...]

Continue reading...

9. April 2009

0 Comments

Stopping SSH brute force attacks using iptables

If your running a SSH server on the default port(22) you've probably noticed a lot of failed login attempts cause due to brute force attacks Adding the following to your IP tables will only allow 3 connections at once from any IP if it goes above 3 then that IP is locked out for 3minutes. [...]

Continue reading...

6. April 2009

0 Comments

Lighttpd On Windows

Setting Up Lighttpd Download the lighttpd setup file from here. I chose the Setup Wizard (.exe) version. Double-click on the downloaded executable to start the installation. When the installation is done go to your lighttpd directory(by default its C:\program files\lighttpd) and run TestMode.bat A console window should open to indicate the server is started. Go [...]

Continue reading...

5. April 2009

0 Comments

Linux File Permissions

What is chmod? Chmod is a command that changes the access permissions of files or directories in order to read, write or execute files How do I view The permissions of files? You can do this by typing ls -la Heres is a example of its output root@duffys-place:/etc/lighttpd# ls -la total 20 drwxr-xr-x 4 root [...]

Continue reading...

5. April 2009

0 Comments

SSH Tunnel

Download Putty From Here Run Putty and insert your servers host name Expand ssh on the sidebar and select tunnels Check the Dynamic Box and in Source port enter a port e.g 3000 and then Press Add Press open and login to your ssh account. Open the event log if you want by holding down [...]

Continue reading...
Page 11 of 12« First...89101112