Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ssh notify #1

Open
ldrrp opened this issue Jul 3, 2019 · 0 comments
Open

Ssh notify #1

ldrrp opened this issue Jul 3, 2019 · 0 comments

Comments

@ldrrp
Copy link
Collaborator

ldrrp commented Jul 3, 2019

/etc/ssh/sshrc

Ip=echo $SSH_CONNECTION | cut -d " " -f 1

logger -t ssh-wrapper $USER login from $ip

wget -d --header="X-User: $USER" --header="X-IP: $ip" http://127.0.0.1/ssh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant