On Thu, Dec 17, 2020 at 10:46:43AM -0500, Michael Grant wrote:
> Slight change to my previous message:
> 
> 
> if [ -n "$STY" ]; then
>     function fix_ssh_auth_sock() {
>         screen -S $STY -X colon "msgwait 0\r"
>         export SSH_AUTH_SOCK=`screen -S $STY -Q echo '$SSH_AUTH_SOCK\r'`
>         screen -S $STY -X colon "msgwait 5\r"
>     }
>     export PROMPT_COMMAND=fix_ssh_auth_sock
> fi

Ok so in fact, this is not working.

I thought $SSH_AUTH_SOCK was different in each reattached screen
process but it's apparently not.  I ended up fooling myself, perhaps
when I started screen twice on the same machine.

I'm back to getting one of the other methods to work now.

Attachment: signature.asc
Description: PGP signature

Reply via email to