Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ssh and chdir to my PWD on the local computer
- X-seq: zsh-users 24080
- From: gi1242+zsh@xxxxxxxxx
- To: zsh-users@xxxxxxx
- Subject: Re: ssh and chdir to my PWD on the local computer
- Date: Sat, 20 Jul 2019 12:36:08 -0400
- In-reply-to: <CADjGqHts+Kjj3Ogw3kNUkUaJerWBeNN+2HDJ0f=XDnO3e3kbng@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mail-followup-to: gi1242+zsh@xxxxxxxxx, zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADjGqHts+Kjj3Ogw3kNUkUaJerWBeNN+2HDJ0f=XDnO3e3kbng@mail.gmail.com>
On Fri, Jul 19, 2019 at 01:40:02PM -0400, TJ Luoma wrote:
> /etc/ssh/ssh_config: SendEnv CWD
>
> /etc/ssh/sshd_config: AcceptEnv CWD
I used to pass variables to ssh by editing the configs this way; but
having multiple machines (some of which I don't have root on) made it
too clunky.
Now I usually do
ssh -t host VAR=value ... zsh
You can save that as a shell alias; or edit ~/.ssh/config and define
RemoteCommand for the hosts you want.
GI
--
If you are not part of the solution, you are part of the precipitate.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author