[Bug 3550] Key Conflict

bugzilla-daemon at mindrot.org bugzilla-daemon at mindrot.org
Tue Mar 21 19:43:38 AEDT 2023


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

--- Comment #7 from Darren Tucker <dtucker at dtucker.net> ---
(In reply to Darren Tucker from comment #6)
[...]
> $ ssh -v -t localhost "trap 'kill -INT -$$' INT; sleep 60;
> PS1='remoteshell$ ' sh -i"

BTW I got the quoting on that wrong, but it happened to work because I
used localhost so the pid from the expanded $$ matched.  For a remote
host, you would need to single-quote or escape the $$:

$ ssh -v -t somehost 'trap "kill -INT -$$; echo sig" INT; sleep 60;
PS1="remoteshell$ " sh -i'

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


More information about the openssh-bugs mailing list