linux - is there a ${SSH_CONNECTION%% *} equivalent in Telnet? -
so on redhat linux...
i have rather unique application need determine address telnet connection occurring on. application use loopback address telnet it's self, , fed different information based on loopback address connects to.
for ssh using ${ssh_connection%% *}. cannot find telnet equivalent. if there not 1 run second ssh daemon. powers rather run telnet.
thank help.
well command echoing out environment varibale ssh_connection
you can telnet in , env , ip , see if there:
or can
who grep $(whoami)|awk '{print $nf}'
run above
Comments
Post a Comment