SFTP/SSH profile load

Posted by Alex on Server Fault See other posts from Server Fault or by Alex
Published on 2012-10-12T09:09:23Z Indexed on 2012/10/12 9:39 UTC
Read the original article Hit count: 165

Filed under:
|
|

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

© Server Fault or respective owner

Related posts about ssh

Related posts about sftp