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

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -