I don't spot anything in your code that helps debugging this further.
The error comes from the other end, that the username (newroot) does not match the pubkey/private key pair.
Maybe look at the remote end, and/or check whether a different username gives a different error.
In reply to Re^9: Net::SSH2 not base64 encoded
by Corion
in thread Net::SSH2 not base64 encoded
by averlon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |