Displaying 3 results from an estimated 3 matches for "shpool".
Did you mean:
sgpool
2023 Mar 01
2
Uniquely Identifying the Local TTY of an SSH Connection
...cation of `ssh` to connect to the remote host and
inform this parked RemoteCommand about the name of the local tty. To
make this a bit more concrete, the config block to make this work with
my tool looks like
```
Host = your-ssh-target-name
Hostname your.ssh.host.example.com
RemoteCommand shpool plumbing ssh-remote-command
PermitLocalCommand yes
LocalCommand ssh -oPermitLocalCommand=no -oRemoteCommand="shpool
plumbing ssh-local-command-set-metadata '%u@%h:%p$(tty)'" %n
```
This kinda works, but has several fairly big problems. A really
obvious one is that single...
2023 Mar 02
1
Uniquely Identifying the Local TTY of an SSH Connection
Packing the data in TERM is a great idea! I?ll see what I can do with that.
>> Finally, some administrative notes: I wasn't able to sign up for this
>> mailing list at
>> https://lists.mindrot.org/mailman/subscribe/openssh-unix-dev because
>> attempts to do so were met by a "Bug in Mailman version 2.1.39" page.
>
> I just tried that and didn't get
2023 Mar 03
1
Uniquely Identifying the Local TTY of an SSH Connection
...`
Host = remote
Hostname = my.remote.host
SendEnv LC__LOCAL_TTY_NAME
ControlPath ~/.ssh/cm-%r@%h:%p
ControlMaster auto
ControlPersist 10m
```
and finally in my .bashrc on my remote host I have an entry
```
if [[ $- =~ i ]] && [[ -n "$LC__LOCAL_TTY_NAME" ]]; then
exec shpool attach "$LC__LOCAL_TTY_NAME"
fi
```
I did try packing the tty name in TERM, but using that with SendEnv would have required mutating my local TERM in a way that could have messed up programs running locally.
This approach works great, but I would also like to be able to set things up so...