PDA

View Full Version : question about log file of sftp and SSH



dhaka
11-23-2004, 06:55 AM
HI,
Recently I had installed knoppix in a computer (HD installation) which I like to use as a server. I am able to use the SSH and sftp to that computer from other windows computer. I am using the putty and psftp for that.

My question is, where the log file is stored in knoppix. I like to know,
(1) From which computer/ IP and
(2) When that been accessed or loged in

Is there any log file for SSH and sftp. I am a new user of SSH and sftp. I had read many manual/FAQ on net but I can't get any information regarding log file.

Anybody know any good link about this?

Looking forward.

(I really fall in love with knoppix like you!)

-dhaka

markb
11-23-2004, 11:45 AM
On my system, sshd logs logins to /var/log/auth.log (but this is configurable via /etc/ssh/sshd_config and /etc/syslog.conf).

dhaka
11-27-2004, 05:09 AM
Thanks markb for your nice support. But there is no IP in there. How I can config my system to log the IP no when a user log form other terminal.

Looking forward

Dhaka

markb
11-27-2004, 01:04 PM
Thanks markb for your nice support. But there is no IP in there. How I can config my system to log the IP no when a user log form other terminal.
Dhaka
OK, use the standard "last" command. You may have to enable wtmp though (e.g. add a "touch /var/log/wtmp" in a boot startup script - maybe add it to /etc/init.d/sshd?).