1 package Object::Remote::Connector::SSH;
3 use Object::Remote::ModuleSender;
4 use Object::Remote::Handle;
7 with 'Object::Remote::Role::Connector::PerlInterpreter';
9 has ssh_to => (is => 'ro', required => 1);
11 around _perl_command => sub {
12 my ($orig, $self) = @_;
13 return 'ssh', '-A', $self->ssh_to, $self->$orig;
18 push @Object::Remote::Connection::Guess, sub {
20 # 0-9 a-z _ - first char, those or . subsequent - hostnamish
21 if (defined and !ref and /^(?:.*?\@)?[\w\-][\w\-\.]/) {
22 return __PACKAGE__->new(ssh_to => $_[0]);