More work on SSH code