Aug 28 2012

How to setup an sftp/ssh server with denyhosts on ubuntu

Category: Linux,tutorialerm @ 2:50 am

Throughout this document I will have <keywords> encapsulated in brackets. Substitute what the keyword is for the appropriate value. For instance <username>@localhost would become erm@localhost, or whatever your username is.

Cliffnotes version commands:

Install open ssh:
$ sudo apt-get install openssh-server

Backup ssh config:
$ sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.`date +%Y-%m-%d`.bak

Edit /etc/ssh/sshd_config:
$ sudo nano /etc/ssh/sshd_config

Enable sftp:
Subsystem sftp /usr/lib/openssh/sftp-server
*save*

Restart ssh:
$ sudo /etc/init.d/ssh restart
OR
$ sudo service ssh restart

Test your server:
$ ssh <username>@localhost

Test your connection:
$ echo $SSH_CLIENT

Log out of ssh:
$ <ctrl+d>
OR
$ exit

Install denyhosts:
$ sudo apt-get install denyhosts

Backup denyhosts config:
$ sudo cp /etc/denyhosts.conf /etc/denyhosts.conf.`date +%Y-%m-%d`.bak

Edit denyhosts config:
$ sudo nano /etc/denyhosts.conf

Edit lines:
BLOCK_SERVICE = ALL
DENY_THRESHOLD_INVALID = 5
DENY_THRESHOLD_RESTRICTED = 1
RESET_ON_SUCCESS = yes
*save*

Restart denyhosts:
$ sudo /etc/init.d/denyhosts restart
OR
$ sudo service denyhosts restart

Get your remote ip:
Visit: ipchicken.com or whatismyip.com

Get your lan/local ip:
$ ifconfig

Login via remote computer from inside lan:
$ ssh <username>@<localip>

Login via remote computer from outside lan:
$ ssh <username>@<remoteip>

Continue reading “How to setup an sftp/ssh server with denyhosts on ubuntu”


Nov 02 2009

French police: we saved millions of euros by adopting Ubuntu – Ars Technica

Category: Linuxerm @ 8:00 pm

French police: we saved millions of euros by adopting Ubuntu – Ars Technica
"Moving from Microsoft XP to Vista would not have brought us many advantages and Microsoft said it would require training of users " said Lt. Col. Guimard. "Moving from XP to Ubuntu however proved very easy. The two biggest differences are the icons and the games. Games are not our priority."


May 25 2009

Mural – Third Attempt – Ubuntu Graffiti

Category: Linuxerm @ 5:32 pm


Mural – Third Attempt

I honestly don’t know if I should be happy or sad about this.

Continue reading “Mural – Third Attempt – Ubuntu Graffiti”

Tags: ,


Jun 17 2008

Sick of the m$ tax

Category: Linux,Things That Get Me Maderm @ 9:37 am

Today I went to dell.com.  I saw a laptop at walmart for around $500, and I was curious if I could purchase it with ubuntu on it.

Continue reading “Sick of the m$ tax”

Tags:


Oct 09 2007

If you’re going to run an ssh server

Category: Linux,Techerm @ 11:36 am

Before you think about running an ssh server, you should also do the following.
Continue reading “If you’re going to run an ssh server”


Jul 20 2007

How to get zork I, zork II, and zork III running in linux

Well your first step is to download the files.
Infocom – Zork Downloads you’ll then need to download zork1.zip, zork2.zip or zork3.zip from that page.  – Just click the titles to download. – Continue reading “How to get zork I, zork II, and zork III running in linux”


Jul 18 2007

Wubi – The Easiest Way to Linux

Category: Linuxerm @ 3:30 pm

Wubi – The Easiest Way to Linux

It would be interesting to see if you can apt-get kde ….


Jul 09 2007

How To Look Like A UNIX Guru

Category: Linuxerm @ 10:33 pm

This is a great tutorial on how to use the linux command line to your advantage.
How To Look Like A UNIX Guru


Next Page »