[Bug 3543] Add a provision to force query of login ID

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Feb 21 14:23:23 AEDT 2023


https://bugzilla.mindrot.org/show_bug.cgi?id=3543

--- Comment #4 from Carl Ponder <cponder at nvidia.com> ---
Here's something I *was* able to contrive. I generate a provisional
config-file that gets included back into the main one:
```
Match originalhost thatHost exec "~/.ssh/HACK/queryID thatHost"
include ~/.ssh/HACK/thatHost
```
The provisional config-file is generated by this "qeryID" script:
```
PTY=$(ps --no-headers $$ | xargs index 2)         # Re-connect with I/O
channels.
echo -n "Login: "         > /dev/$PTY             # Require a fresh
User ID.
read LOGIN                < /dev/$PTY
echo "Hostname $1"        > ~/.ssh/HACK/$1        # Re-build the
parameter-file.
echo "User " $LOGIN      >> ~/.ssh/HACK/$1
echo "UpdateHostKeys no" >> ~/.ssh/HACK/$1
sync
```

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list