Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use ubuntu 10.04, contained ssh. I want to create a log file that stores all the activity on ssh (only ssh). Like in /var/log/auth.log but only for ssh. Like/var/log/ssh.log.

So, file ssh.log will saving all records of the client when using ssh to a remote server.

share|improve this question

You need to reconfigure your syslog daemon.

OpenSSH just sends the log messages to the syslog daemon with the SyslogFacility and LogLevel which is defined in /etc/ssh/sshd_config.

In which file the log is written ist just a configuration thing of your syslog-daemon.

share|improve this answer
which part to edit in /etc/ss/sshd_config? – dtnder Dec 16 '12 at 15:07
none, as mgabriel answered, You need to reconfigure your syslog daemon and not change sshd_config. The options in SSH config file are only to specify the level of logging. – laurent Dec 16 '12 at 18:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.