Aug 28 2012

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

Tag: 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

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

Test your server:
$ ssh <username>@localhost

Test your connection:
$ echo $SSH_CLIENT

Log out of ssh:
$ <ctrl+d>
$ 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:

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

Get your remote ip:
Visit: or

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

Tag: 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

Tag: 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”

Jun 17 2008

Sick of the m$ tax

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

Today I went to  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”

Oct 14 2007

I’m a “High Nerd”

Tag: Funny,Techerm @ 2:19 am says I'm a High Nerd.  What are you?  Click here!

I felt like I needed to share.

Oct 09 2007

If you’re going to run an ssh server

Tag: 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”

Aug 21 2007

YouTube – Nanotech Assembler

Tag: Makes you think ...,RIAA,Techerm @ 5:09 am

YouTube – Nanotech Assembler
I rent a lot of videos legally, and I’m constantly getting bombarded with “you wouldn’t steal a ____”
Continue reading “YouTube – Nanotech Assembler”

Aug 01 2007

Stumble Video bookmarklet – stop the fading

Tag: Techerm @ 6:41 am

I absolutely hate stumblevideo’s fade. It causes the video to skip, and drag.

Continue reading “Stumble Video bookmarklet – stop the fading”

Next Page »