Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ssh and chdir to my PWD on the local computer



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