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

--- Comment #4 from Carl Ponder <cpon...@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.
_______________________________________________
openssh-bugs mailing list
openssh-bugs@mindrot.org
https://lists.mindrot.org/mailman/listinfo/openssh-bugs

Reply via email to