Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Command Executing problem in perl.

by pvaldes (Chaplain)
on Jun 27, 2012 at 16:20 UTC ( #978713=note: print w/ replies, xml ) Need Help??


in reply to Command Executing problem in perl.

use Net::SSH::Perl; my $ssh = Net::SSH::Perl->new( "www.blah.blah.blah.com", identity_files => '~/.ssh/bkp', debug => true, #same as -v use_pty => 1, #request pseudo-tty, same as -t option, I think options => [ "ForwardX11 no", # same as -x "ForwardAgent no", # same as -a if I'm not wrong # all desired options passed as # "option value", # you can choose also any of these: ... "AddressFamily 'any'", "BatchMode yes/no", "BindAddress ... ", "ChallengeResponseAuthentication yes/no", "CheckHostIP yes/no", "Cipher 3des", "Ciphers ...", "ClearAllForwardings ...", "Compression ...", "CompressionLevel ...", "ConnectionAttempts ...", "ConnectTimeout ...", "ControlMaster ...", "ControlPath ...", "ControlPersist ...", "DynamicForward ...", "EscapeChar ...", "ExitOnForwardFailure ...", "ForwardX11Timeout ...", "ForwardX11Trusted ...", "GatewayPorts ...", "GlobalKnownHostsFile ...", "GSSAPIAuthentication ...", "GSSAPIDelegateCredentials ...", "HashKnownHosts ...", "Host ...", "HostbasedAuthentication ...", "HostKeyAlgorithms ...", "HostKeyAlias ...", "HostName ...", "IdentityFile '~/.ssh/bkp'", "IdentitiesOnly ...", "IPQoS ...", "KbdInteractiveAuthentication ...", "KbdInteractiveDevices ...", "KexAlgorithms ...", "LocalCommand ...", "LocalForward ...", "LogLevel ...", "MACs ...", "NoHostAuthenticationForLocalhost ...", "NumberOfPasswordPrompts ...", "PasswordAuthentication ...", "PermitLocalCommand ...", "PKCS11Provider ...", "Port 9999999", "PreferredAuthentications ...", "Protocol '2,1'", # 2 preferred, 1 also acceptable "ProxyCommand ...", "PubkeyAuthentication ...", "RekeyLimit ...", "RemoteForward ...", "RequestTTY ...", "RhostsRSAAuthentication ...", "RSAAuthentication ...", "SendEnv ...", "ServerAliveInterval ...", "ServerAliveCountMax ...", "StrictHostKeyChecking ...", "TCPKeepAlive ...", "Tunnel ...", "TunnelDevice ...", "UsePrivilegedPort ...", "User ...", "UserKnownHostsFile ...", "VerifyHostKeyDNS ...", "VisualHostKey ...", "XAuthLocation ..." ]);

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://978713]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2016-07-27 11:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What is your favorite alternate name for a (specific) keyboard key?


















    Results (242 votes). Check out past polls.