off topic: Can’t ssh into a Ubuntu 12.04 box


After a fresh install of Ubuntu 12.04 followed by an install of the ssh-meta package (which includes the ssh server and client) as well as firestarter (to allow ssh access through the firewall) I wasn’t able to login from a remote machine. Worse: firestarter didn’t show a denied ssh-access, which I expected after a fresh install. Fooling around with /etc/sshd_config didn’t change a thing. Until I stumbled about a piece of information on the internet, that open my eyes.
Starting up firestarter it displayed a message saying “Failed to open the system log. No event information will be available” and “Error reading system log (null), file does not exist.”. At first I ignored them and thought, oh well, I don’t care. But I do, ’cause that is the reason for not displaying the deny-message which I needed to allow access. Another search revealed the solution:

From Ubuntu 11.04 on rsylogd is installed rather than syslogd which firestarter was expecting. I edited /etc/rsyslog.d/50-default.conf by changing the lines commented out that create the relevant logfile

#*.=info;*.=notice;*.=warn;\
    # auth,authpriv.none;\
    # cron,daemon.none;\
    # mail,news.none -/var/log/messages

to

*.=info;*.=notice;*.=warn;\
    auth,authpriv.none;\
    cron,daemon.none;\
    mail,news.none -/var/log/messages

Then restarting rsyslog with sudo service rsyslog restart and restarting firestarter the problem disappears.

(the last bit I found on askubuntu)

Advertisements

0 Responses to “off topic: Can’t ssh into a Ubuntu 12.04 box”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s





%d bloggers like this: