Did you remember to use your own login name and hostname instead of [EMAIL PROTECTED] Is sshd working correctly on the remote computer? Is a firewall blocking ssh? Are you using an sh-compatible (i.e. sh, ksh, bash, zsh, ...) shell on both computers? I can't think of any other reasons that it would hang.
Kamaraju Kusumanchi wrote: > On Sun, 05 Dec 2004 17:18:54 -0500, David Mandelberg > <[EMAIL PROTECTED]> wrote: > >>ssh [EMAIL PROTECTED] "sh -c 'cd dirname; exec somecommand'" >> >>somecommand is the command you want to run after cd'ing. E.g. if you >>want to run bash in / as joe at shell.example.net: >> >>ssh [EMAIL PROTECTED] "sh -c 'cd /; exec bash'" >> > > > I tried this. It is not working. The machine seems to be hanging. Is > there any typo there? > > raju > -- -----BEGIN GEEK CODE BLOCK----- Version: 3.1 GAT/CM$/CS>$/CC/IT$/M/S/O/U dpu s+:++ !a C++$>C+++$ UB+++>++++$L++++$*-- P+>++$ L+++(++++)$ E-(---) W+++>$ N(+) o? K- w--(---) O? M V? PS++@ PE-@ Y+@ PGP++(+++)>$ t? 5? X? R tv--(-) b++(+++)@ DI? D? G e->++++ h* r? z* ------END GEEK CODE BLOCK------ David Mandelberg [EMAIL PROTECTED]
signature.asc
Description: OpenPGP digital signature