This is a discussion on Re: setting current dir of remote shell within the OpenSSH Development forums, part of the Networking and Network Related category; Darren Tucker wrote: > It's not exactly the same as a login shell but it's close: > ssh -...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Darren Tucker wrote:
> It's not exactly the same as a login shell but it's close: > ssh -t someserver "(cd `pwd` && exec $SHELL -)" Actually, the () brackets aren't necessary either. ssh -t someserver "cd `pwd` && exec $SHELL -" -- Darren Tucker (dtucker at zip.com.au) GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4 37C9 C982 80C7 8FF4 FA69 Good judgement comes with experience. Unfortunately, the experience usually comes from bad judgement. _______________________________________________ openssh-unix-dev mailing list openssh-unix-dev@mindrot.org http://lists.mindrot.org/mailman/lis...enssh-unix-dev |
![]() |
| Thread Tools | |
| Display Modes | |
|
|