ShellStream is the way to go if you want session persistence like you would see with an interactive ssh session (EX: putty). SshCommand acts more like plink. I haven't tried to use the ShellStream yet because it's still maturing (Also doesn't have expect functionality).
↧