As discussed here, we can SSH remote to Ubuntu Server instance, and run command, and open a prompt
ssh -t host 'cmd1; cmd2; sh -i'
Though the shell prompt I get on my Ubuntu Server is not the default one i.e. as I try to run ~ ./bashrc
, I get the error as below snapshot.
So my need is
ssh -t host 'cmd1; cmd2; OPEN_DEFAULT_PROMPT'
where OPEN_DEFAULT_PROMPT
will open default Ubuntu Server shell prompt right after cmd1; cmd2
.