[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: login into a particular directory using ssh

Did you remember to use your own login name and hostname instead of
joe@shell.example.net? 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
> <mandelbergd@eth0.is-a-geek.org> wrote:
>>ssh user@hostname "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 joe@shell.example.net "sh -c 'cd /; exec bash'"
> I tried this. It is not working. The machine seems to be hanging. Is
> there any typo there?
> raju

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*

David Mandelberg

Attachment: signature.asc
Description: OpenPGP digital signature

Reply to: