Bug 159 : Change to first do ssh and then do http