Perl Monk, Perl Meditation | |
PerlMonks |
Net::SSH::Perl push variable into remote fileby rtech0 (Initiate) |
on Jul 28, 2016 at 03:14 UTC ( [id://1168696]=perlquestion: print w/replies, xml ) | Need Help?? |
rtech0 has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I am trying to grab the contents of ~/username/.ssh/id_rsa.pub into a variable and copy it so a user on the remote machine in /home/remoteusername/.ssh/authorized_keys. I have the file already in a variable via:
If I try this is creates the files but empty (I am sure you know why). Please advise:
ps I thought it might be this but doesn't work:
Thank y'all in advance!
Back to
Seekers of Perl Wisdom
|
|