2,421 reputation
42149
bio website coffeeplusplus.z11.de
location Germany
age 43
visits member for 2 years, 6 months
seen 9 mins ago

SCHWUPPS-DI-WUPPS


6m
asked Delete a swap partition without user interaction
Jan
27
revised $USER not set ssh
deleted 4 characters in body
Jan
26
comment How to configure SVN/SSH with SSH on non standard port?
@Dogbert: it doesn't work like you say: I tried ssh = ssh -p 20000 and then tried to checkout svn+ssh://example.org/var/svn-repos/mydev/trunk but this still tries on port 22
Jan
26
accepted Send email if user accesses the server via ssh
Jan
26
comment Send email if user accesses the server via ssh
So I can rewrite the script like this: unix.stackexchange.com/a/126573/20661
Jan
26
comment Send email if user accesses the server via ssh
I tried a lot now with pam_exec.so but I always get notified that the user root logged in, instead of my username. I used the script in my question. I tried the option seteuid and quiet but still, always it sais it was root
Jan
26
revised Send email if user accesses the server via ssh
added 7 characters in body
Jan
26
revised Send email if user accesses the server via ssh
added 71 characters in body
Jan
26
comment Send email if user accesses the server via ssh
I want to find out, if someone was able to get hold of password or ssh-key to any of the users on my server and logs in via ssh with that password or ssh-key. I also want to get notified if any person accesses my server.
Jan
26
comment Send email if user accesses the server via ssh
@0xC0000022L: I see, there seemed to be something missing at the end of my question. I hope now it is clearer
Jan
26
revised Send email if user accesses the server via ssh
added 21 characters in body
Jan
26
comment Send email if user accesses the server via ssh
What are the close-votes about? I edited my question to clarify the problem
Jan
26
revised Send email if user accesses the server via ssh
added 61 characters in body
Jan
26
comment Send email if user accesses the server via ssh
It is a nice workaround, until i Find a solution to really track the real logins and send an email only then
Jan
26
comment Send email if user accesses the server via ssh
As a workaround, this would work, but only, if you have root login disabled in your ssh config, otherwise, you would miss mails on a real root login
Jan
26
accepted $USER not set ssh
Jan
26
asked Send email if user accesses the server via ssh
Jan
26
comment $USER not set ssh
yes, it uses just /bin/sh that might be the differrence
Jan
26
comment $USER not set ssh
"never set"? But on my other server they are set
Jan
26
comment $USER not set ssh
Yes that works, that will solve my problem, but the question is still there. Why does it differ on different servers?