in reply to Re^7: Send password in Net::SSH::Expect
in thread Send password in Net::SSH::Expect
Please find below the full output. #ssh-rsa AAAAB3NzaC1yc2 root@HOSTA#gI" /tmp/test.txt']] at ./key.pl li +ne 70.
If that is really, really the (start of the) output of your script, then the hostname (maybe) contains a newline or a carriage return or some other whitespace. Have you really, really checked that your variables contain what you think they do?
If the file contains Windows newlines for example, the output will look as above, as the carriage return left over from the \r\n sequence will move the cursor to the start of the line again.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Send password in Net::SSH::Expect
by gafaman (Novice) on Jan 23, 2020 at 10:42 UTC | |
by hippo (Archbishop) on Jan 23, 2020 at 10:49 UTC | |
by gafaman (Novice) on Jan 23, 2020 at 11:08 UTC | |
by gafaman (Novice) on Jan 23, 2020 at 11:13 UTC |