Miquel van Smoorenburg wrote: > ssh -t joe@shell.example.net 'cd / && exec /bin/bash' That works, but because this is a login shell, and the remote machine may differentiate between login and non-login shells, this is better: ssh -t joe@shell.example.net 'cd / && exec /bin/bash --login -i' Also don't forget the exec because otherwise you'd be running an extra shell or the single quotes before cd and after -i. -- -----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 mandelbergd@eth0.is-a-geek.org
Attachment:
signature.asc
Description: OpenPGP digital signature