What's new

Code/Key Basic Linux command to check who is connected to your SSH server.

R3g4z4k1

Eternal Poster
Established
Joined
Jan 23, 2019
Posts
342
Reaction
2,524
Points
445

SSH sets the environment variable SSH_CONNECTION to contain client IP address, client port number, server IP address, and server port number seperated by spaces.

You can use
You do not have permission to view the full content of this post. Log in or register now.
to get the client's IP address. To get the DNS name use something like host or dig -x:
You do not have permission to view the full content of this post. Log in or register now.
You do not have permission to view the full content of this post. Log in or register now.
Sample Screenshot:
You do not have permission to view the full content of this post. Log in or register now.
Thank you for your support!
Keep Learning!
Keep going!

Follow for more updates!
 

Attachments

Similar threads

Users search this thread by keywords

  1. Ssh
Back
Top