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

Re^11: Send password in Net::SSH::Expect

by gafaman (Novice)
on Jan 23, 2020 at 11:08 UTC ( [id://11111767]=note: print w/replies, xml ) Need Help??


in reply to Re^10: Send password in Net::SSH::Expect
in thread Send password in Net::SSH::Expect

Thanks, I found something:
:HOSTA\x{0d}:
Rest seems find. Working on removing this appendix.

Replies are listed 'Best First'.
Re^12: Send password in Net::SSH::Expect
by gafaman (Novice) on Jan 23, 2020 at 11:13 UTC
    Bingo! That was it. Thanks, oh venerable monks! Removed it by adding:
    $hostname =~ s/\r//g;
    Now output shows:
    Launching [[ssh -q user@host 'sed -i "s#.*HOSTA#ssh-rsa AAAAB3NzaC1yc +root@HOSTA#gI" /tmp/test.txt']] at ./key.pl line 81.
    And the command is doing what it should. To learn is to struggle.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-03-29 04:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found