Запустите SSH и немедленно выполните команду

ssh -t 'command; bash -l'
ssh -t user@domain.com 'cd /some/path; bash -l'
Mr.Helper