Archive for December 12th, 2011

How to Prevent Server inaccessibility by using a secondary SSH Server access port

Monday, December 12th, 2011

One of the Debian servers’s SSH daemon suddenly become inaccessible today. While trying to ssh I experienced the following error:

$ ssh root@my-server.net -v
OpenSSH_5.8p1 Debian-2, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to mx.soccerfame.com [83.170.104.169] port 22.
debug1: Connection established.
debug1: identity file /home/hipo/.ssh/id_rsa type -1
debug1: identity file /home/hipo/.ssh/id_rsa-cert type -1
debug1: identity file /home/hipo/.ssh/id_dsa type -1
debug1: identity file /home/hipo/.ssh/id_dsa-cert type -1
...
Connection closed by remote host

Interestingly only the SSH server and sometimes the mail server was failing to respond and therefore any mean to access the server was lost. Anyways some of the services on the server for example Nginx continued working just fine.
Some time ago while still working for design.bgweb development company, I’ve experienced some similar errors with SSH servers, so I already had a clue, on a way to work around the issue and to secure myself against the situation to loose access to remote server because the secure shell daemon has broken up.

My work around is actually very simple, I run a secondary sshd (different sshd instance) listening on a different port number.

To do so I invoke the sshd daemon on port 2207 like so:

debian:~# /usr/sbin/sshd -p 2207
debian:~#

Besides that to ensure my sshd -p 2207 will be running on next boot I add:

/usr/sbin/sshd -p 2207

to /etc/rc.local (before the script end line exit 0 ). I do set the sshd -p 2207 to run via /etc/rc.local on purpose instead of directly adding a Port 2207 line in /etc/ssh/sshd_config. The reason, why I’m not using /etc/ssh/sshd_config is that I’m not sure if using the sshd config to set a secondary port does run the port under a different sshd parent. If using the config doesn’t run the separate ssh port under a different server parent this will mean that once the main parent hangs, the secondary port will become inaccessible as well.

Midnight in Paris (2011) -A tiny movie review

Monday, December 12th, 2011

Midnight in Paris Movie Cover 2011 review

Yesteday with Baky (my dear Orthodox Coptic Christian friend) and Kliment (a good friend from the old rock’n’roll years), we went to the Dobrich Cinema (sadly just one cinema for the city is available). The cinema in Dobrich is called Cinema Club Icarus (Ikar). For all foreigners who wants to enjoy some movie, the Dobrich Cinema does offer a plenty of English speaking movies (with Bulgarian subtitles).

Pitily the Dobrich Cinema website http://www.kinoikar.com/bg/info/2 is not existing in English, though anyone wanting to check the current projected movies in the cinema can use the movie trailers and the movie pictures to get the necessery info.

Anyways I haven’t been to a cinema for some almost two months, so going for a movie was really relaxing enjoyable experience. Besides that, we were lucky to see a movie which fitted quite well to my movie genre preferences –

Midnight in Paris

. Midnight in Paris is a Romantic Comedy for intellectuals and people who have a glipmse on art. Its a Bohemian movie so to say and I believe it wouldn’t hold a big interest for the avarage man who doesn’t keep interest in Arts, History or Philosophy.

The movie plot revives around a young engaged American couple who went to Paris for a business trip, just to find out there whole life is gonna be changed by this.
The main actor Gil a just grown man is writting a Novel book, trying to make a shift of his profession from being a movie directory to a novel publicist. Gil (Owen Wilson) is an odd Bohemian kind of man, who quickly fells in love with Paris rich culture architecture and old fame.
Next to that Gil is a dreamer who (just like me dreams about the old glorious times), when people were more respectable better moral and more idealistic than in the current age. After one night of heavy wine drinking, Gil’s fiancee wents for some dancing and leaves him on his own. Gil makes a round in Paris and losts himself and decides to stay for a while in front of sold old Roman Catholic Cathedral, a mysterious very old car crosses by the street and suddenly some “party” gang asks Gil to join. He has no idea where he is going and suddeny finds himself in the epoch of the world famous 1920 of great book publicists like the Fidgeralds family.
Night by night Gil is being transferred to a different epoch back in time to meet a world famous artists and authors, people like Ernest Hemingway, Picaso, Salvador Dali etc. etc. 😉

The movie shows many personages of odd world famous people with some of their strangeties known by the current age. It appears all of them are dreaming for all and the same thing, to live in a earlier age to live in the Golden Age of Arts and Poetry 😉

The movie is real fun in Gil’s personage I’ve seen a lot of “me”, also I’ve seen a lot of me in many of the other famous people as of course presented in the movie. I hardly recommend this movie to anyone who wants to take a break, have a good mindful laugh time.
Here is Midnight in Paris movie trailer as well to get an idea what to expect: