1 package Object::Remote::Connector::SSH;
3 use Object::Remote::ModuleSender;
4 use Object::Remote::Handle;
7 with 'Object::Remote::Role::Connector::PerlInterpreter';
9 around _perl_command => sub {
10 my ($orig, $self, $target) = @_;
11 return 'ssh', $target, $self->$orig($target);
16 $self->ssh_masters->{$on} ||= Net::OpenSSH->new($on);
19 push @Object::Remote::Connection::Guess, sub {
21 # 0-9 a-z _ - first char, those or . subsequent - hostnamish
22 if (defined and !ref and /^(?:.*?\@)?[\w\-][\w\-\.]/) {
23 return __PACKAGE__->new->connect($_[0]);