|
|
|
|
||||||
| comp.unix.shell Using and programming the Unix shell. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
Hi all,
I have a server that is used by a number of people. Each person has their own user id, but there are a number of IDs that all people can use. They access the server via SSH using public/private key authentication. Is there a way to determine, from the shell, which public/private key was used to authenticate the user? Thanks, Dan Rumney |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
OK, the method I was going to use to find out the logged on users's IP
address was to use "who -m" and "host" to determine it. (This is a Red Hat box) Unfortunately, this falls over if the user uses ssh to simply submit a command. "who -m" in this instance returns nothing. So, can anyone advise on how to determine the current user's IP address? Thanks, Dan Rumney |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
> netstat -tnp
Thanks, That lists all the current connections, but this user id doesn't have root privelige, so the PIDs aren't shown. Right know, I can't think how I could take that and determine the IP address that the current user is connecting from. Any suggestion are welcome... i'm still searching the net and scratching my head Dan |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
c.o.l.security pointed out that $SSH_CLIENT is set with the client's IP
address Thanks all, Dan Rumney |
|
![]() |
| Outils de la discussion | |
|
|