On a local machine, I can just do
cat /etc/iscsi/initiatorname.iscsi
to get the IQN that is sent to targets when establishing an ISCSI session. What I am trying to find out is whether it is possible to establish another machine's initiator IQN without ssh'ing to it. This is because, given a set of IPs or hostnames of machines I have no control over, I need to set up targets to allow ISCSI logins from those machines only.
It doesn't seem to be possible using, e.g., iscsiadm. I'm assuming the answer is No, but I'm no expert in ISCSI, so asking anyway. If the answer is No, we'll have to deal with the problem in some other way, perhaps by requiring the initiators to be set up with IQNs from a known pool, or even that the IQN is set to the same on all those machines (I suspect there might be adverse consequences with the latter workaround, but I'm not sure).