Advertisement
Guest User

Untitled

a guest
Aug 17th, 2017
434
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. #!/usr/local/bin/perl
  2. use strict;
  3. use warnings;
  4. use Net::SSH::Perl;
  5. my $ssh = Net::SSH::Perl->new($server_ip, debug=>1);
  6. $ssh->login("root","password");
  7.  
  8. [root@Automation_linux_10]# perl temp.pl
  9. Automation_linux_[Auto_server_ip]: Reading configuration data /root/.ssh/config
  10. Automation_linux_[Auto_server_ip]: Reading configuration data /etc/ssh_config
  11. Automation_linux_[Auto_server_ip]: Allocated local port 1023.
  12. Automation_linux_[Auto_server_ip]: Connecting to [SERVER_IP], port 22.
  13. Automation_linux_[Auto_server_ip]: Remote version string: SSH-2.0-OpenSSH_6.6.1
  14. Automation_linux_[Auto_server_ip]: Remote protocol version 2.0, remote software version OpenSSH_6.6.1
  15. Automation_linux_[Auto_server_ip]: Net::SSH::Perl Version 2.12, protocol version 2.0.
  16. Automation_linux_[Auto_server_ip]: No compat match: OpenSSH_6.6.1.
  17. Automation_linux_[Auto_server_ip]: Connection established.
  18. Automation_linux_[Auto_server_ip]: Sent key-exchange init (KEXINIT), waiting for response.
  19. Automation_linux_[Auto_server_ip]: Using curve25519-sha256@libssh.org for key exchange
  20. Automation_linux_[Auto_server_ip]: Host key algorithm: ssh-ed25519
  21. Automation_linux_[Auto_server_ip]: Algorithms, c->s: chacha20-poly1305@openssh.com <implicit> none
  22. Automation_linux_[Auto_server_ip]: Algorithms, s->c: chacha20-poly1305@openssh.com <implicit> none
  23. Can't locate object method "exchange" via package "Net::SSH::Perl::Kex::C25519" at /usr/local/lib64/perl5/Net/SSH/Perl/Kex.pm line 107.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement