SFTP/SSH profile load
- by Alex
I have a CentOS 6.2 server.
Whenever some one logs into the server using the terminal (SSH) the user profile (.bash_profile) is loaded.
Now my question is, is there a profile that loads whenever you use SFTP to login into the server via "FTP browsing software" ( I use WinSCP ), I want to send an email whenever a user logs into the server via SFTP. I already have the code to do this when a user logs into the terminal (SSH) when his profile loads.
Thanks