checking for the ssh keyfile should only be done when connecting from local. also made classes newstyle