How to ssh and cd to the current directory?
- From: Peng Yu <pengyu.ut@xxxxxxxxx>
- Date: Sat, 10 Oct 2009 08:03:08 -0700 (PDT)
ssh by default only goes to the home directory ~. I'm wondering if
there is a way to supply a directory (that is /home/name/some_dir in
this case) to it, so that it will go to the directory directly.
$pwd
/home/name/some_dir
$ssh localhost # I want to change the directory to /home/name/some_dir
after sshed to localhost
$pwd
/home/name
.
- Follow-Ups:
- Re: How to ssh and cd to the current directory?
- From: Nico Kadel-Garcia
- Re: How to ssh and cd to the current directory?
- Prev by Date: Re: How to configure ssh to login with option -Y by default?
- Next by Date: Re: How to ssh and cd to the current directory?
- Previous by thread: How to configure ssh to login with option -Y by default?
- Next by thread: Re: How to ssh and cd to the current directory?
- Index(es):
Relevant Pages
|