Fill in more functionality of nssh. It's almost done.