There are many ways to retrieve source IP from your box you are ssh in, but below command is the most concise way to retrieve the source IP
curl ipinfo.io/ip
Reference Link:
https://askubuntu.com/questions/95910/command-for-determining-my-public-ip