similar to: Uniquely Identifying the Local TTY of an SSH Connection

Displaying 20 results from an estimated 2000 matches similar to: "Uniquely Identifying the Local TTY of an SSH Connection"

2023 Mar 02
1
Uniquely Identifying the Local TTY of an SSH Connection
On Thu, 2 Mar 2023 at 00:12, Ethan Pailes <ethan at pailes.org> wrote: [...] > this works quite well, except that $SSH_TTY holds the path of the > remote pty rather than the local pty, so there is nothing that ensures > that you will reconnect to the same session if you ssh back into your > remote machine from the same local terminal emulator. > > First of all, can anyone
2016 Mar 26
3
[Bug 2558] New: Add RemoteCommand option to ssh client
https://bugzilla.mindrot.org/show_bug.cgi?id=2558 Bug ID: 2558 Summary: Add RemoteCommand option to ssh client Product: Portable OpenSSH Version: 7.2p1 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 Component: ssh Assignee: unassigned-bugs at mindrot.org
2023 Mar 03
1
Uniquely Identifying the Local TTY of an SSH Connection
I've managed to figure out a scheme using SendEnv. The way it works is that I add the following to my local .bashrc ``` export LC__LOCAL_TTY_NAME="ssh-$(basename $(tty))" ``` then on the same local machine add an entry to my .ssh/config ``` Host = remote Hostname = my.remote.host SendEnv LC__LOCAL_TTY_NAME ControlPath ~/.ssh/cm-%r@%h:%p ControlMaster auto ControlPersist
2024 May 04
1
Feature request/EOI: Match interactive config?
Or just create bash (or whatever your favorite shell equivalent is) alias? alias issh=?sah -F ~/.ssh/altcinfig? Or wrapper scripts in ~/bin/ you can invoke? Literally what I do for mosh, mosh+screen etc. -- "Genius might be described as a supreme capacity for getting its possessors into trouble of all kinds." -- Samuel Butler On Fri, May 3, 2024 at 20:27 <openssh at tr.id.au>
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
2024 May 04
3
Feature request/EOI: Match interactive config?
Hey there, I often want different behavior in my ssh client depending on whether I'm logging into an interactive session or running a remote non-interactive command. We can see at, say, https://unix.stackexchange.com/a/499562/305714 that this isn't a unique wish, and existing solutions are kind of baroque. Typical reasons to do this are to immediately go into a screen or tmux session; for
2024 May 06
1
Feature request/EOI: Match interactive config?
On Sat, 4 May 2024, openssh at tr.id.au wrote: > Hey there, > > I often want different behavior in my ssh client depending on > whether I'm logging into an interactive session or running > a remote non-interactive command. We can see at, say, > https://unix.stackexchange.com/a/499562/305714 that this isn't a > unique wish, and existing solutions are kind of baroque.
2018 Apr 03
0
Announce: OpenSSH 7.7 released
OpenSSH 7.7 has just been released. It will be available from the mirrors listed at http://www.openssh.com/ shortly. OpenSSH is a 100% complete SSH protocol 2.0 implementation and includes sftp client and server support. Once again, we would like to thank the OpenSSH community for their continued support of the project, especially those who contributed code or patches, reported bugs, tested
2018 Apr 03
2
Announce: OpenSSH 7.7 released
OpenSSH 7.7 has just been released. It will be available from the mirrors listed at http://www.openssh.com/ shortly. OpenSSH is a 100% complete SSH protocol 2.0 implementation and includes sftp client and server support. Once again, we would like to thank the OpenSSH community for their continued support of the project, especially those who contributed code or patches, reported bugs, tested
2020 Sep 06
0
[Bug 3209] New: Make overriding RemoteCommand on the cli easier
https://bugzilla.mindrot.org/show_bug.cgi?id=3209 Bug ID: 3209 Summary: Make overriding RemoteCommand on the cli easier Product: Portable OpenSSH Version: 8.3p1 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 Component: ssh Assignee: unassigned-bugs at
2013 May 14
15
[Bug 2103] New: remote command as an option in ssh_config
https://bugzilla.mindrot.org/show_bug.cgi?id=2103 Bug ID: 2103 Summary: remote command as an option in ssh_config Classification: Unclassified Product: Portable OpenSSH Version: 6.2p1 Hardware: Other OS: Linux Status: NEW Severity: enhancement Priority: P5 Component: ssh
2010 Sep 04
4
[Bug 1815] New: RemoteCommand and PseudoTTY config options
https://bugzilla.mindrot.org/show_bug.cgi?id=1815 Summary: RemoteCommand and PseudoTTY config options Product: Portable OpenSSH Version: 5.1p1 Platform: All OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: ssh AssignedTo: unassigned-bugs at mindrot.org ReportedBy:
2014 Dec 15
0
[OT} Odd tmux behaviour on exit
CentOS-6.6 tmux-1.6 (epel) Twice now I have experienced the situation where upon exiting from a tmux initiated session on a remote host instead of returning to the originating session I see this in the session terminal display: <pre> ????????????????????????????????????????????????????????????????????????????????
2014 Jul 03
0
[SOLVED] Re: exiting tmux sessions
On Wed, July 2, 2014 17:20, James B. Byrne wrote: > I am experimenting with tmux. I have run into a behaviour that I would like > to change. Idf I connect to a single host multiple times via tmux, when I > exit one tmux window then all the windows report their session closed. Is > there anyway of changing this behaviour in .tmux.conf so that only the session > exited closes or,
2015 Oct 30
0
Screen
If you're just getting starting with a screen multiplexer, I'd suggest starting with tmux. My understanding is that GNU screen has effectively been abandoned. I used GNU screen for at least 10 years, and recently switched to tmux. As someone else said, in GNU screen, if you want to send ctrl-a to your application (e.g. shell or emacs), you can do ctrl-a followed by a "naked"
2014 Jul 02
0
exiting tmux sessions
I am experimenting with tmux. I have run into a behaviour that I would like to change. Idf I connect to a single host multiple times via tmux, when I exit one tmux window then all the windows report their session closed. Is there anyway of changing this behaviour in .tmux.conf so that only the session exited closes or, as might be the underlying problem, any way of ensuring that a second tmux
2006 Sep 18
0
[Bug 1232] "LocalCommand" is executed before "Tunnel" is set up
http://bugzilla.mindrot.org/show_bug.cgi?id=1232 Summary: "LocalCommand" is executed before "Tunnel" is set up Product: Portable OpenSSH Version: 4.3p2 Platform: ix86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: ssh AssignedTo: bitbucket at mindrot.org
2024 May 06
1
Feature request/EOI: Match interactive config?
Hey Damien, > Would something like this help? > > Match sessiontype shell > User foo > Match remotecommand "none" > User foo2 > Match sessiontype exec remotecommand "/rsync" > User bar > Match sessiontype subsystem remotecommand "sftp" > User baz > > > diff --git a/readconf.c b/readconf.c > <snip> Thanks for looking
2011 Jan 05
0
[PATCH] fix %n expansion in LocalCommand
After the commit titled "expand %h to the hostname in ssh_config Hostname options" (2010-07-16), %n always got the same value as %h in the LocalCommand config option. Fix this and add a regression test. --- regress/Makefile | 6 ++++-- regress/host-expand.sh | 18 ++++++++++++++++++ ssh.c | 6 ++++-- 3 files changed, 26 insertions(+), 4 deletions(-) diff
2024 May 06
1
Feature request/EOI: Match interactive config?
On Mon, 6 May 2024, openssh at tr.id.au wrote: > Hey Damien, > > > Would something like this help? > > > > Match sessiontype shell > > User foo > > Match remotecommand "none" > > User foo2 > > Match sessiontype exec remotecommand "/rsync" > > User bar > > Match sessiontype subsystem remotecommand "sftp"