More advanced ssh logic. Comments.