in reply to Net::SSH linux

There is (at least!) a typo in your code: ssh->login should be $ssh->login.