Get IP address of the client in an SSH session

echo $SSH_CLIENT | awk '{ print $1}'
echo $SSH_CONNECTION | awk '{ print $1}'
who am i | awk '{print $5}' | sed 's/[()]//g'

Leave a Reply

Your email address will not be published. Required fields are marked *

*

Bitte folgenden Aufgabe lösen: * Time limit is exhausted. Please reload CAPTCHA.