[clug] ssh to box, run shell command, then leave shell open?

Carlo Hamalainen carlo.hamalainen at gmail.com
Wed May 4 18:32:25 MDT 2011

On Thu, May 5, 2011 at 10:09 AM, Kevin Pulo <kev at pulo.com.au> wrote:
> I would have thought that the simplest solution along these lines is
>    ssh -t foo at wherever bash --rcfile .bash_special
> which will log in (with a tty, so -i isn't needed), and then source
> .bash_special out of the remote account's home directory.

This does work but with one strange side-effect: ctrl-L doesn't work
anymore for clearing the screen. It just prints ^L. I've Googled a bit
but I can't work out how to turn that back on.

Carlo Hamalainen

More information about the linux mailing list