1

ssh script then run bash interactively?

view story
linux-howto

https://bbs.archlinux.org – I have a script, which I can not put on a remote server.  However, I would like to run it on the remote server using ssh.  What I have been doing recently is ssh -t host <<-EOF command1; command2; ... /bin/bash -i EOFIt runs the commands correctly, but does not give me the bash prompt.I can do ssh -t host "command1; command2; bash"The only issue, is that the commands has lots of characters in it, making escaping extremely complex (it's a 100 line script).Any ideas as to how to accomplish this would be extremely helpful.EDIT: also sorry if this is a nooby (HowTos)