in reply to Re^2: Send password in Net::SSH::Expect
in thread Send password in Net::SSH::Expect
So it is not sending the entire -- sed -i \"s#.*$hostname -- bit.system("ssh -qv $ssh_user\@$bkp_destination 'sed -i \"s#.*$hostname#$s +key#g\" /tmp/test.txt'"); Variables: $hostname = "HOSTA"; $skey = "ssh-rsa AAAAB3NzaC1yc2 root@HOSTA"; SSH output: ... debug1: Sending env LANG = en_GB.UTF-8 #ssh-rsa AAAAB3NzaC1yc2 root@HOSTA#g" /tmp/test.txt ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Send password in Net::SSH::Expect
by Corion (Patriarch) on Jan 23, 2020 at 09:03 UTC | |
by gafaman (Novice) on Jan 23, 2020 at 09:24 UTC | |
by Corion (Patriarch) on Jan 23, 2020 at 09:36 UTC | |
by gafaman (Novice) on Jan 23, 2020 at 09:58 UTC | |
by Corion (Patriarch) on Jan 23, 2020 at 10:28 UTC | |
|