Fixes ssh

Some fixes to ssh tests.