Ubuntu – Net::OpenSSH with Expect to connect to router
I would like to connect via ssh to my router. SSH connection from shell works fine! The program: sub av_ssh { $Net::OpenSSH::debug = ~0; $av_obj_SSH = Net::OpenSSH->new($av_loc_ROUTER, user => 'newroot', key_path => ".ssh/t_zertifikat_a_karl-heinz_fischbach.key", timeout => 30); $av_obj_SSH->error and die "Couldn't…