Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Identify remote port under SSH

SOLVED
Go to solution
Erik Eulen
Occasional Contributor

Identify remote port under SSH

I currently use
$ MY_PORT == F$GETDVI("TT","TT_ACCPORNAM")
to retrieve the remote port for telnet connections.
When I use this with a SSH connection the remote port information is not returned.
I there a way to get that information either with lexicals or via a system or library call?
Or any other programmatic way for that matter.
3 REPLIES
Hoff
Honored Contributor
Steven Schweda
Honored Contributor

Re: Identify remote port under SSH

Define "the remote port". ("Port" has a
specific meaning in the IP world.)

My Forum search for:
TT_ACCPORNAM ssh
found:

http://h30499.www3.hp.com/t5/Networking/Detecting-SSH-Connections-in-LOGIN-COM/m-p/5260649#M14222


What did yours find?

Around here, for example:

alp $ show logical /job *rem_*

(LNM$JOB_82897580)

"SYS$REM_ID" = "SMS"
"SYS$REM_NODE" = "alp-l.antinode.info::"
"SYS$REM_NODE_FULLNAME" = "alp-l.antinode.info::"

Erik Eulen
Occasional Contributor

Re: Identify remote port under SSH

That pointed me to the solution.

the logical SYS$REM_NODE returns the information I need.

I guess I should start 'tossing' these questions at Google.

Thanks for your help.