zsh-users
 help / color / mirror / code / Atom feed
From: gi1242+zsh@gmail.com
To: zsh-users@zsh.org
Subject: Re: ssh and chdir to my PWD on the local computer
Date: Sat, 20 Jul 2019 12:36:08 -0400	[thread overview]
Message-ID: <20190720163608.GA27711@andrew.cmu.edu> (raw)
In-Reply-To: <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.

  parent reply	other threads:[~2019-07-21  4:15 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-19 17:40 TJ Luoma
2019-07-19 21:45 ` Roman Perepelitsa
2019-07-20 16:36 ` gi1242+zsh [this message]
2019-07-22 15:55 ` Philippe Troin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190720163608.GA27711@andrew.cmu.edu \
    --to=gi1242+zsh@gmail.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).